/* ==========================================================================
   Home Concept Kerikeri — site stylesheet
   1. Tokens
   2. Reset & base
   3. Layout: container, section, grids
   4. Typography helpers
   5. Components: header, nav, buttons, media, lists, cards, forms, CTA
   6. Footer
   7. Responsive
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */

:root {
  /* Surfaces */
  --paper: #f6f4ef;
  --paper-raised: #fdfcfa;
  --paper-sunken: #f2efe7;
  --placeholder: #eae6dd;

  /* Ink & greens */
  --ink: #14201b;
  --green: #1e3a2d;
  --green-deep: #14201b;
  --green-tint: #2a4a3b;

  /* Text */
  --text-body: #4c5148;
  --text-body-strong: #2c332c;
  --text-muted: #8a8578;
  --text-card: #5b615a;

  /* Lines */
  --rule: #e2ded3;
  --rule-light: #e6e2d8;
  --input-border: #d5d0c4;
  --button-border: #c8c3b6;

  /* Accent */
  --terracotta: #a8562f;

  /* On dark */
  --on-dark-heading: #f6f4ef;
  --on-dark-body: #c6cbc2;
  --on-dark-muted: #9db29a;
  --on-dark-border: #5c6b5f;
  --on-dark-accent: #c9a68f;

  /* Footer */
  --footer-bg: #14201b;
  --footer-body: #e8e4da;
  --footer-muted: #a8ada4;
  --footer-label: #7f8a80;
  --footer-link: #c6cbc2;
  --footer-rule: #2b382e;

  --selection: #d7e0d5;
  --white: #fff;

  /* Type */
  --font-display: "Bricolage Grotesque", "Work Sans", system-ui, sans-serif;
  --font-body: "Work Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Layout */
  --container: 1200px;
  --gutter: 30px;
  --section-y: 80px;
  --section-y-inner: 64px;

  --transition: 150ms ease;
}

/* 2. Reset & base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

p {
  margin: 0;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition),
    background-color var(--transition);
}

a:hover {
  color: var(--terracotta);
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--selection);
}

input,
select,
textarea,
button {
  font-family: inherit;
}

/* Focus ring is green, never terracotta — an orange ring around a field or
   button reads as a validation error. On dark surfaces it flips to paper. */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.section--dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--on-dark-heading);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--green);
  color: var(--paper);
}

.skip-link:focus {
  left: 0;
}

/* 3. Layout
   ========================================================================== */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  border-top: 1px solid var(--rule);
}

.section--raised {
  background: var(--paper-raised);
}

.section--dark {
  background: var(--green);
  color: var(--on-dark-heading);
}

.section__inner {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.section__inner--inner {
  padding-top: var(--section-y-inner);
  padding-bottom: var(--section-y-inner);
}

.section__inner--hero {
  padding-top: 74px;
  padding-bottom: 64px;
}

.section__inner--hero-home {
  padding-top: 80px;
  padding-bottom: 70px;
}

.section__inner--hero-wide {
  padding-top: 74px;
  padding-bottom: 44px;
}

.section__inner--grid-only {
  padding-top: 0;
  padding-bottom: 74px;
}

.section__inner--services-group {
  padding-top: 56px;
  padding-bottom: 60px;
}

.section__inner--band {
  padding-top: 70px;
  padding-bottom: 70px;
}

/* Two-column splits */
.split {
  display: grid;
  gap: 60px;
}

.split--hero {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}

.split--hero-top {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
}

.split--headline {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
}

.split--about {
  grid-template-columns: 0.9fr 1.1fr;
}

.split--even {
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.split--area {
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
}

.split--aside {
  grid-template-columns: 280px 1fr;
  gap: 48px;
}

/* Heading row with a right-aligned link */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

/* 4. Typography helpers
   ========================================================================== */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--terracotta);
  flex: none;
}

.h1-home {
  font-size: 62px;
  line-height: 1;
  letter-spacing: -0.025em;
}

.h1-page {
  font-size: 52px;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.h1-page--services {
  font-size: 54px;
  max-width: 20em;
}

.h1-page--narrow {
  font-size: 50px;
  line-height: 1.04;
}

.h1-page--contact {
  font-size: 46px;
  line-height: 1.05;
}

.h2-section {
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.h2-section--inner {
  font-size: 32px;
}

.h2-section--band {
  font-size: 34px;
}

.h2-sub {
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-body);
  max-width: 33em;
}

.lead--sm {
  font-size: 18px;
  line-height: 1.65;
  max-width: 34em;
}

.lead--flush {
  font-size: 17px;
  max-width: none;
}

.prose {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-body);
}

/* Vertical rhythm between a heading and the copy that follows it */
.h1-home + .lead,
.h1-page--narrow + .lead--sm {
  margin-top: 26px;
}

.h1-page--contact + .lead--sm {
  margin-top: 24px;
}

.lead--sm + .lead--sm {
  margin-top: 20px;
}

.h2-section + .prose,
.h2-sub + .prose {
  margin-top: 20px;
}

.prose.prose--tight {
  margin-top: 18px;
}

.prose.prose--narrow {
  max-width: 30em;
}

.mono-note {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-muted);
}

.kicker {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.caption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.link-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.fact-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 26px;
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* On-dark variants */
.section--dark .h2-section,
.section--dark .h2-sub {
  color: var(--on-dark-heading);
}

.section--dark .prose {
  color: var(--on-dark-body);
}

.section--dark .kicker,
.section--dark .caption {
  color: var(--on-dark-muted);
}

/* 5. Components
   ========================================================================== */

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 244, 239, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.logo:hover {
  color: inherit;
}

.logo__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--green);
}

.logo__place {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Scoped away from .btn so the "Free quote" button keeps its own colours */
.site-nav a:not(.btn) {
  color: var(--text-body);
}

.site-nav a:not(.btn):hover {
  color: var(--terracotta);
}

.site-nav a[aria-current]:not(.btn) {
  color: var(--green);
  border-bottom: 1px solid var(--terracotta);
  padding-bottom: 2px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-body);
  cursor: pointer;
}

.nav-toggle__bars {
  display: block;
  position: relative;
  width: 18px;
  height: 1px;
  background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1px;
  background: currentColor;
}

.nav-toggle__bars::before {
  top: -5px;
}

.nav-toggle__bars::after {
  top: 5px;
}

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 17px 26px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  cursor: pointer;
}

.btn--primary {
  background: var(--green);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--green-deep);
  color: var(--paper);
}

.btn--secondary {
  background: transparent;
  border-color: var(--button-border);
  color: var(--ink);
}

.btn--secondary:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn--header {
  padding: 11px 18px;
  letter-spacing: 0.06em;
}

.btn--submit {
  width: 100%;
  padding: 16px 22px;
  border: 0;
  letter-spacing: 0.04em;
}

.section--dark .btn--primary {
  background: var(--paper);
  color: var(--ink);
}

.section--dark .btn--primary:hover {
  background: var(--white);
  color: var(--ink);
}

.section--dark .btn--secondary {
  border-color: var(--on-dark-border);
  color: var(--on-dark-heading);
}

.section--dark .btn--secondary:hover {
  border-color: var(--on-dark-heading);
  color: var(--on-dark-heading);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 36px;
}

.button-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Media boxes ------------------------------------------------------------- */

.media {
  background: var(--placeholder);
  overflow: hidden;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--4x5 {
  aspect-ratio: 4 / 5;
}

.media--1x1 {
  aspect-ratio: 1 / 1;
}

.media--4x3 {
  aspect-ratio: 4 / 3;
}

.media--3x2 {
  aspect-ratio: 3 / 2;
}

.media--spaced {
  margin-top: 30px;
}

.section--dark .media {
  background: var(--green-tint);
}

.map {
  max-width: 300px;
  margin-top: 26px;
}

.map img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Hairline lists ---------------------------------------------------------- */

.hairline-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.hairline-list > * + * {
  border-top: 1px solid var(--rule);
}

.hairline-list--spaced {
  margin-top: 36px;
}

.hairline-list__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 22px 0;
}

.hairline-list--compact .hairline-list__row {
  grid-template-columns: 110px 1fr;
}

.hairline-list__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hairline-list__value {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
}

/* Focus list (home "What we do") */
.focus-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.focus-list > * + * {
  border-top: 1px solid var(--rule);
}

.focus-list__row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 28px 0 28px 30px;
  background: var(--paper-raised);
}

.focus-list__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.focus-list__body {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-body-strong);
}

.focus-list__foot {
  flex: 1;
  padding: 30px 0 30px 30px;
  background: var(--paper-raised);
}

/* Bulleted promise list */
.promises {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.promises li {
  position: relative;
  padding-left: 30px;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--text-body-strong);
}

.promises li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--green);
}

.promises--lg li {
  font-size: 17px;
}

/* Numbered hairline list (quote page) */
.steps {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.steps > * + * {
  border-top: 1px solid var(--rule);
}

.steps__row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 20px 0;
}

.steps__index {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--terracotta);
}

.steps__text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-body-strong);
}

/* Opening hours ----------------------------------------------------------- */

.hairline-list--spaced-sm {
  margin-top: 34px;
}

.hours-block {
  margin-top: 34px;
}

.hours {
  margin-top: 16px;
}

.hours .hairline-list__row {
  grid-template-columns: 120px 1fr;
  padding: 13px 0;
  font-size: 16px;
  color: var(--text-body-strong);
}

.hours__day {
  color: var(--text-body);
}

/* Card grids -------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 22px;
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--gap-20 {
  gap: 20px;
}

.grid--gap-26 {
  gap: 26px;
}

.grid--top {
  margin-top: 36px;
}

.grid--top-sm {
  margin-top: 32px;
}

/* Compact service card (home) */
.service-card {
  display: block;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
}

.service-card:hover {
  border-color: var(--green);
  color: inherit;
}

.service-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
}

.service-card__name {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
}

.service-card__arrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--terracotta);
}

/* Detailed service card (services page) */
.detail-card {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
}

a.detail-card {
  display: block;
  color: inherit;
}

a.detail-card:hover {
  border-color: var(--green);
  color: inherit;
}

.detail-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.detail-card__arrow {
  color: var(--terracotta);
  font-size: 15px;
  line-height: 1;
}

.detail-card__body {
  padding: 16px 18px 18px;
}

.detail-card__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.detail-card__note {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-card);
}

/* Captioned tile (recent work, latest jobs, gallery) */
.tile {
  margin: 0;
}

a.tile--link {
  display: block;
  color: inherit;
}

.section--dark a.tile--link:hover .tile__caption {
  color: var(--on-dark-heading);
}

.tile__caption {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section--dark .tile__caption {
  color: var(--on-dark-muted);
}

figure.tile .tile__caption {
  margin-top: 11px;
}

/* Blog card */
.post-card {
  display: block;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
}

.post-card:hover {
  border-color: var(--green);
  color: inherit;
}

.post-card__body {
  padding: 22px 24px 26px;
}

.post-card__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.post-card__title {
  margin-top: 12px;
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.post-card__more {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
}

/* Town list --------------------------------------------------------------- */

.towns {
  margin: 0;
  padding: 14px 0 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 24px;
}

.towns li {
  padding-bottom: 11px;
  border-bottom: 1px solid var(--rule-light);
  font-size: 15.5px;
  color: var(--text-body);
}

/* CTA band ---------------------------------------------------------------- */

.cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.cta .prose {
  margin-top: 14px;
  max-width: 38em;
}

.cta .prose--band {
  margin-top: 16px;
}

/* Long-form content (terms, blog posts, sub-brand pages) ------------------- */

.content {
  max-width: 46em;
}

.content > * + * {
  margin-top: 18px;
}

.content h2 {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

/* The first heading in a column needs no rule above it */
.content > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.content h3 {
  margin-top: 32px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.content h2 + *,
.content h3 + * {
  margin-top: 14px;
}

.content p,
.content li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-body-strong);
}

.content a {
  text-decoration: underline;
}

.content ul,
.content ol {
  margin: 0;
  padding: 0 0 0 20px;
  list-style: none;
  display: grid;
  gap: 10px;
}

/* A list needs more air below the heading it sits under than a paragraph does */
.content h2 + ul,
.content h2 + ol,
.content h3 + ul,
.content h3 + ol {
  margin-top: 22px;
}

.content ul li {
  position: relative;
  padding-left: 30px;
}

.content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  background: var(--green);
}

.content ol {
  counter-reset: content-item;
}

.content ol li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  counter-increment: content-item;
}

.content ol li::before {
  content: counter(content-item, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  line-height: 1.7;
  color: var(--terracotta);
}

/* A label/value pair list — trading hours, trip charges, lifespans */
.content .rate-list {
  padding-left: 0;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.content .rate-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 13px 0;
}

.content .rate-list li + li {
  border-top: 1px solid var(--rule);
}

.content .rate-list li::before {
  content: none;
}

.rate-list__value {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
}

.content figure {
  margin: 32px 0 0;
}

.content figure img {
  width: 100%;
  height: auto;
}

/* Article (blog post) ------------------------------------------------------ */

.article__meta {
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.article__cover {
  max-width: 46em;
  margin: 34px 0 40px;
}

.back-link {
  display: inline-block;
  margin-top: 48px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
}

/* Contact card on the sub-brand pages -------------------------------------- */

.brand-card {
  padding: 26px 28px;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
}

/* Reset the .content h2 rule/spacing when the heading is inside a card */
.content .brand-card__name {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.brand-card .hairline-list {
  margin-top: 18px;
  border-bottom: 0;
}

/* Project photo sets (service pages) -------------------------------------- */

.photo-set__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.photo-set__head .h2-sub {
  margin: 0;
}

.photo-sheet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Tradie index rows ------------------------------------------------------- */

.tradie-list {
  border-top: 1px solid var(--rule);
}

.tradie-row {
  display: grid;
  grid-template-columns: 180px 1fr 240px;
  gap: 40px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--rule);
}

.tradie-row__media {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: var(--surface-raised);
}

.tradie-row__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tradie-row__media--logo,
.media--logo {
  background: var(--white);
}

/* Tom's is a logo rather than a photo, so it must sit inside the box whole.
   These rules follow the base image rule so contain wins over cover. */
.tradie-row__media--logo img,
.media--logo img {
  object-fit: contain;
  padding: 10px;
}

.tradie-row__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.tradie-row__name a {
  color: inherit;
  text-decoration: none;
}

.tradie-row__name a:hover {
  color: var(--green);
}

.tradie-row__note {
  margin: 12px 0 0;
  max-width: 46ch;
  color: var(--text-muted);
  line-height: 1.55;
  text-wrap: pretty;
}

.tradie-row__area {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tradie-row__contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tradie-row__phone {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.tradie-row__phone:hover {
  color: var(--terracotta);
}

.tradie-row__email {
  font-size: 15px;
  word-break: break-word;
}

.tradie-row__more {
  margin-top: 12px;
}

@media (max-width: 860px) {
  .tradie-row {
    grid-template-columns: 120px 1fr;
    gap: 24px;
  }

  .tradie-row__contact {
    grid-column: 2;
  }
}

/* Gallery service filter --------------------------------------------------- */

/* The filter needs JS to do anything, so it stays hidden without it rather
   than offering a control that does nothing. */
.gallery-filter {
  display: none;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.js .gallery-filter {
  display: flex;
}

.gallery-filter__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.gallery-filter__select {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--input-border);
  padding: 11px 42px 11px 14px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%234c5148' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.gallery-grid[data-filter="renovations"] .tile:not([data-service~="renovations"]) {
  display: none;
}

.gallery-grid[data-filter="bathrooms"] .tile:not([data-service~="bathrooms"]) {
  display: none;
}

.gallery-grid[data-filter="tiling"] .tile:not([data-service~="tiling"]) {
  display: none;
}

.gallery-grid[data-filter="flooring"] .tile:not([data-service~="flooring"]) {
  display: none;
}

.gallery-grid[data-filter="plumbing"] .tile:not([data-service~="plumbing"]) {
  display: none;
}

.gallery-grid[data-filter="painting"] .tile:not([data-service~="painting"]) {
  display: none;
}

.gallery-grid[data-filter="roofing"] .tile:not([data-service~="roofing"]) {
  display: none;
}

.gallery-grid[data-filter="cladding"] .tile:not([data-service~="cladding"]) {
  display: none;
}

.gallery-grid[data-filter="timber-rot"] .tile:not([data-service~="timber-rot"]) {
  display: none;
}

.gallery-grid[data-filter="gutters"] .tile:not([data-service~="gutters"]) {
  display: none;
}

.gallery-grid[data-filter="repairs"] .tile:not([data-service~="repairs"]) {
  display: none;
}

.gallery-grid[data-filter="decking"] .tile:not([data-service~="decking"]) {
  display: none;
}

.gallery-grid[data-filter="landscaping"] .tile:not([data-service~="landscaping"]) {
  display: none;
}

/* Standalone message page (thanks, 404) ----------------------------------- */

.message {
  padding-top: 90px;
  padding-bottom: 110px;
  max-width: 36em;
}

.message .prose {
  margin-top: 18px;
}

.message .button-row {
  margin-top: 32px;
}

/* Forms ------------------------------------------------------------------- */

.form-card {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  padding: 34px;
}

.form-card--on-raised {
  background: var(--paper);
}

.form-card__title {
  font-size: 24px;
  letter-spacing: -0.01em;
}

.form-card__title--sm {
  font-size: 22px;
}

.form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 8px;
}

.field__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  padding: 13px 14px;
  border: 1px solid var(--input-border);
  border-radius: 0;
  background: var(--white);
  font-size: 15px;
  color: var(--ink);
}

.field textarea {
  resize: vertical;
}

/* The chevron is an inline data-URI, which cannot read a custom property —
   the stroke colour here is the only hardcoded copy of --text-body. */
.field select {
  padding-right: 42px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%234c5148' stroke-width='1.4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
}

/* The ring sits flush against the field border, so focus reads as one solid
   green edge rather than a detached box. */
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline-offset: 0;
}

.form__honeypot {
  position: absolute;
  left: -9999px;
}

.form__status {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
}

/* Inset note -------------------------------------------------------------- */

.note {
  margin-top: 26px;
  padding: 22px 24px;
  background: var(--paper-sunken);
  border-left: 2px solid var(--terracotta);
}

.note__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.note__body {
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-body-strong);
}

.note .map {
  margin-top: 18px;
  max-width: 230px;
}

/* 6. Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--footer-bg);
  color: var(--footer-body);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 30px;
}


.site-footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--on-dark-heading);
}

.site-footer__blurb {
  margin: 14px 0 0;
  max-width: 26em;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--footer-muted);
}

.site-footer__contact {
  margin-top: 22px;
  font-size: 15.5px;
  line-height: 1.9;
}


.site-footer__contact a {
  color: var(--footer-body);
}

/* Only the email address is underlined, as in the design */
.site-footer__contact a[href^="mailto:"] {
  text-decoration: underline;
}

.site-footer__contact a:hover {
  color: var(--terracotta);
}

.site-footer__address {
  color: var(--footer-muted);
}

.site-footer__blog-link {
  display: inline-block;
  margin-top: 22px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--on-dark-border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-accent);
}

.site-footer__heading {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--footer-label);
}

.site-footer__links {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  font-size: 14.5px;
}

.site-footer__links--two-col {
  grid-template-columns: 1fr 1fr;
  gap: 9px 18px;
}


.site-footer__links a {
  color: var(--footer-link);
}

.site-footer__links a:hover {
  color: var(--terracotta);
}

.site-footer__bottom {
  padding-bottom: 44px;
}

.site-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--footer-rule);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--footer-label);
}

.site-footer__bottom-inner a {
  color: var(--footer-label);
}

.site-footer__bottom-inner a:hover {
  color: var(--footer-link);
}

/* 7. Responsive
   ========================================================================== */

@media (max-width: 1099px) {
  .grid--4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 999px) {
  :root {
    --section-y: 56px;
    --section-y-inner: 48px;
    --gutter: 24px;
  }

  .section__inner--hero,
  .section__inner--hero-home,
  .section__inner--hero-wide {
    padding-top: 52px;
    padding-bottom: 40px;
  }

  .section__inner--grid-only {
    padding-bottom: 56px;
  }

  .section__inner--services-group,
  .section__inner--band {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .split,
  .split--hero,
  .split--hero-top,
  .split--headline,
  .split--about,
  .split--even,
  .split--area,
  .split--aside {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .h1-home {
    font-size: 46px;
    line-height: 1.04;
  }

  .h1-page,
  .h1-page--services,
  .h1-page--narrow,
  .h1-page--contact {
    font-size: 40px;
    line-height: 1.06;
  }

  .h2-section,
  .h2-section--band {
    font-size: 30px;
  }

  .h2-section--inner {
    font-size: 28px;
  }

  .h2-sub {
    font-size: 26px;
  }

  .grid--3,
  .photo-sheet {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .button-stack {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .focus-list__row,
  .focus-list__foot {
    padding-left: 0;
  }

  .towns {
    padding-top: 0;
  }
}

@media (max-width: 899px) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: 16px;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    order: 3;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-bottom: 8px;
  }

  .js .site-nav[data-open="true"] {
    display: flex;
  }

  .js .site-nav a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    border-top: 1px solid var(--rule);
  }

  .js .site-nav a.btn {
    justify-content: center;
    margin-top: 12px;
    border-top: 0;
    padding: 14px 18px;
  }

  .js .site-nav a[aria-current]:not(.btn) {
    border-bottom: 0;
    padding-bottom: 0;
    box-shadow: inset 2px 0 0 var(--terracotta);
    padding-left: 12px;
  }
}

@media (max-width: 639px) {
  :root {
    --section-y: 48px;
    --section-y-inner: 44px;
    --gutter: 20px;
  }

  .h1-home,
  .h1-page,
  .h1-page--services,
  .h1-page--narrow,
  .h1-page--contact {
    font-size: 36px;
  }

  .h2-section,
  .h2-section--band,
  .h2-section--inner {
    font-size: 28px;
  }

  .h2-sub {
    font-size: 24px;
  }

  .lead,
  .lead--sm {
    font-size: 17px;
  }

  .fact-row {
    flex-wrap: wrap;
    white-space: normal;
    gap: 10px 20px;
  }

  .grid--4,
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--posts {
    grid-template-columns: 1fr;
  }

  .button-row .btn,
  .button-stack .btn {
    width: 100%;
  }

  .focus-list__row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hairline-list__row,
  .hours .hairline-list__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .towns {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-card {
    padding: 24px 20px;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
