/* ==========================================================================
   base.css — structure shared by all four styles.
   Only tokens.css and the theme-*.css layer may restyle.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Matches the sticky header, so a jump link lands with its heading in view. */
  scroll-padding-top: 5.5rem;
  color-scheme: var(--mode);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-tracking);
  line-height: 1.12;
  /* Stops a two-word last line, which is the ugliest break in display type. */
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.15rem;
}

a {
  color: var(--brand);
  text-underline-offset: 3px;
}

/* Selected text keeps the theme's own tint instead of the browser blue. */
::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

img,
svg {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/*
 * The focus token is tuned for page backgrounds — on the navy header it lands at
 * 2.4:1 and inside Clean's call band at 1.0:1, i.e. invisible. Those three
 * regions all carry an ink colour that the theme contract already holds at
 * 4.5:1 or better, so the ring borrows it.
 */
.site-header :focus-visible,
.callband :focus-visible,
.site-footer :focus-visible {
  outline-color: currentColor;
}

/*
 * The header is sticky, so an in-page link (#services, a footer service link)
 * would otherwise park its target underneath it.
 */
[id] {
  scroll-margin-top: 5.5rem;
}

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform 0.15s ease-in;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- breadcrumb ---------- */

.breadcrumb {
  padding: 0.9rem 0 0;
  font-size: 0.85rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.45rem;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--brand-strong);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- portfolio page ---------- */

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  /* --card-border already carries "1px solid …", so adding one here produced an
     invalid declaration and the card had no outline at all. */
  border: var(--card-border);
  border-radius: var(--radius-lg);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 0.7rem 0.9rem 0.9rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

@media (min-width: 60rem) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-item:first-child img {
    aspect-ratio: 16 / 10;
  }
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav-bg);
  color: var(--nav-ink);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  /* A long trading name must wrap inside the header rather than widen the page. */
  min-width: 0;
  line-height: 1.25;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: 1.05rem;
  letter-spacing: var(--head-tracking);
  overflow-wrap: anywhere;
}

.brand-meta {
  font-size: 0.76rem;
  color: var(--nav-ink);
  opacity: 0.82;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.4rem 0.6rem;
  color: var(--nav-ink);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  /* 44px tall before any theme padding: the smallest comfortable thumb target. */
  min-height: 2.75rem;
  padding: 0.72rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: var(--brand);
}

/* Secondary had no hover state at all, so it looked dead under the cursor. */
.btn-secondary:hover {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
}

.btn:active {
  transform: translateY(1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-block {
  width: 100%;
}

.btn svg {
  flex: 0 0 auto;
}

/* ---------- hero ---------- */

.hero {
  padding: var(--hero-pad);
  background: var(--gradient-hero, var(--surface-2));
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding-left: 0.7rem;
  border-left: 3px solid var(--accent);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: var(--eyebrow-tracking);
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 0.55em;
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
}

.lede {
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.5rem 0 1.4rem;
}

.hero-points {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.hero-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
}

.hero-points svg {
  color: var(--brand);
  margin-top: 0.15rem;
}

.hero-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card h2 {
  margin-bottom: 1rem;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: var(--eyebrow-tracking);
  text-transform: uppercase;
}

.badge-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.badge {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.badge svg {
  box-sizing: content-box;
  margin-top: 0;
  padding: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: var(--radius);
}

.badge-list > :nth-child(3n + 2) svg {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge-list > :nth-child(3n + 3) svg {
  background: var(--accent-2-soft);
  color: var(--accent-2);
}

.badge strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.3;
}

.badge span {
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* ---------- uploaded imagery ---------- */

.hero-aside,
.about-aside {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.hero-media,
.about-media {
  margin: 0;
  overflow: hidden;
  background: var(--surface-3);
  border: var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-media img,
.about-media img,
.work-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-media img {
  aspect-ratio: 4 / 3;
}

.about-media img {
  aspect-ratio: 3 / 2;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: 190px;
  max-height: 44px;
  object-fit: contain;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-item {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: var(--card-border);
  border-radius: var(--radius-lg);
}

.work-item img {
  aspect-ratio: 4 / 3;
}

.work-caption {
  display: block;
  padding: 0.6rem 0.75rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---------- sections ---------- */

.section {
  padding: var(--section-pad);
}

.section--alt {
  background: var(--brand-soft);
}

.section-head {
  max-width: 62ch;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.section-head p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

.section-foot {
  margin-top: 1.75rem;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 1.35rem;
  background: var(--surface-2);
  border: var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  /* Cards hold the "Details" link, so they should acknowledge the cursor. */
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.section--alt .card {
  background: var(--surface);
}

.card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
}

.card p {
  margin-bottom: 0.9rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0.85rem;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: var(--radius);
}

/* Rotate through the three theme colours so a card grid never looks flat. */
.grid-cards > :nth-child(3n + 2) .card-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.grid-cards > :nth-child(3n + 3) .card-icon {
  background: var(--accent-2-soft);
  color: var(--accent-2);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

/* ---------- call band ---------- */

.callband {
  padding: 1.5rem 0;
  background: var(--band-bg);
  color: var(--band-ink);
}

.callband-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.callband p {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-tracking);
}

.callband .btn-primary {
  border-color: var(--accent);
}

/* ---------- symptoms & price factors ---------- */

.checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.65rem 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--ink-soft);
}

.checklist svg {
  flex: none;
  margin-top: 0.15rem;
  color: var(--brand);
}

/* ---------- process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  padding: 1.25rem;
  border-top: 3px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 0 var(--radius) var(--radius);
  counter-increment: step;
}

.section--alt .step {
  background: var(--surface);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.5rem;
  color: var(--brand);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.steps > :nth-child(2) {
  border-top-color: var(--brand);
}

.steps > :nth-child(2)::before {
  color: var(--accent);
}

.steps > :nth-child(3) {
  border-top-color: var(--accent-2);
}

.steps > :nth-child(3)::before {
  color: var(--accent-2);
}

.steps > :nth-child(4) {
  border-top-color: var(--brand);
}

.steps > :nth-child(4)::before {
  color: var(--brand);
}

.step h3 {
  font-size: 1.02rem;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---------- reviews ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quote {
  margin: 0;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: var(--card-border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.quote p {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.quote footer {
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

/* A quote with no attribution should not leave a gap where one would be. */
.quote p:last-child {
  margin-bottom: 0;
}

.quotes > :nth-child(2) {
  border-left-color: var(--brand);
}

.quotes > :nth-child(3) {
  border-left-color: var(--accent-2);
}

/* ---------- faq ---------- */

.faq {
  max-width: 68ch;
}

.faq details {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  /* A native triangle sits tight against the text and cannot be animated; a
     drawn chevron on the right reads like a control and turns when it opens. */
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.2rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.15rem) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] > summary::after {
  transform: translateY(0) rotate(-135deg);
}

.faq summary::marker {
  color: var(--accent);
}

.faq details[open] > summary {
  color: var(--brand);
}

.faq summary:hover {
  color: var(--brand);
}

.faq details p {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
}

/* ---------- service area ---------- */

.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  padding: 0.35rem 0.75rem;
  background: var(--accent-soft);
  color: var(--ink);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
}

.hours {
  margin: 0;
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.hours dt {
  color: var(--ink-soft);
}

.hours dd {
  margin: 0;
  max-width: 62%;
  text-align: right;
  overflow-wrap: anywhere;
  font-weight: 600;
}

/* ---------- closing cta ---------- */

.cta {
  padding: var(--section-pad);
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.cta p {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- contact page ---------- */

.page-head {
  padding: 3rem 0 2.25rem;
  background: var(--gradient-hero, var(--surface-2));
  border-bottom: 3px solid var(--accent);
}

.page-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}

.page-head .lede {
  margin-bottom: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2.5rem;
  align-items: start;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-list svg {
  color: var(--brand);
  margin-top: 0.2rem;
}

.contact-list strong {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-list a,
.contact-list span {
  font-size: 1.02rem;
  font-weight: 600;
}

.contact-form {
  padding: 1.6rem;
  background: var(--surface-2);
  border: var(--card-border);
  border-radius: var(--radius-lg);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.8rem;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.97rem;
  border: 2px solid var(--field-border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--brand);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--accent);
  outline: 3px solid var(--accent);
  outline-offset: 1px;
}

/*
 * :user-invalid only fires after the person has actually left the field, so the
 * form does not turn red while it is still being filled in.
 */
.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-note {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.form-status {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand);
}

.form-status[data-state="pending"] {
  color: var(--ink-soft);
}

/* site.js sets data-state="error"; without a rule the failure looked exactly
   like the success message. --accent clears 4.9:1 on --surface-2 everywhere. */
.form-status[data-state="error"] {
  color: var(--accent);
}

/* Netlify's honeypot: bots fill it, people cannot see it. Off-screen rather than
   display:none so simple bots still find something to trip over. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- service detail ---------- */

.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.service-detail:first-of-type {
  border-top: 0;
}

.service-detail h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}

.service-detail ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

/* ---------- footer ---------- */

.site-footer {
  padding: 3rem 0 1.5rem;
  background: var(--footer-bg);
  color: var(--footer-ink);
  border-top: 4px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h2 {
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: var(--eyebrow-tracking);
  text-transform: uppercase;
  opacity: 0.85;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

/* Footer links sit in a dark block with no other affordance, so the underline is
   the hover state rather than a colour shift that the palette cannot promise. */
.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.footer-brand {
  margin-bottom: 0.5rem;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: var(--head-weight);
}

.footer-note {
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(128, 128, 128, 0.35);
  font-size: 0.82rem;
  opacity: 0.85;
}

.footer-bottom p {
  margin: 0;
}

/* ---------- sticky mobile call/text bar ---------- */

/* On wide screens the header and footer already carry the number, so the bar is
   off. On a phone it pins the two actions that matter to a thumb. */
.callbar {
  display: none;
}

@media (max-width: 900px) {
  .callbar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.14);
  }

  .callbar .btn {
    width: 100%;
    min-height: 2.75rem;
    margin: 0;
  }

  /* Keep the footer's last line clear of the fixed bar. */
  body {
    padding-bottom: 4.5rem;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-inner,
  .contact-grid,
  .service-detail {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .header-inner {
    gap: 0.6rem;
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
  }

  .site-nav[data-open="false"] {
    display: none;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a {
    padding: 0.7rem 0.2rem;
    border-bottom: 1px solid rgba(128, 128, 128, 0.28);
  }

  .header-inner .btn-call {
    order: 1;
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  :root {
    --hero-pad: 2.5rem 0 2.25rem;
    --section-pad: 2.5rem 0;
  }

  .hero-actions .btn,
  .cta-inner .btn {
    width: 100%;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-toggle-label {
    display: none;
  }

  .theme-toggle {
    padding: 0.5rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .callband-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  /* View-transition pseudo-elements are not matched by the universal selector. */
  ::view-transition-group(*),
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}

/* ---------- contrast ---------- */

/*
 * When the OS asks for more contrast, drop the soft ink and strengthen the
 * hairlines rather than inventing a fourth palette. Every value is still a theme
 * token, so the light and dark sets stay consistent with each other.
 */
@media (prefers-contrast: more) {
  :root {
    --ink-soft: var(--ink);
    --line: var(--ink);
    --field-border: var(--ink);
  }
}


.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.5rem 0.7rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  cursor: pointer;
}

/* currentColor rather than a token: the header's ink is the one colour the theme
   guarantees against its own background, in both modes. */
.nav-toggle:hover,
.theme-toggle:hover,
.nav-toggle:active,
.theme-toggle:active {
  background: color-mix(in srgb, currentColor 14%, transparent);
}

/* ---------- colour-mode toggle ---------- */

.theme-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.42rem 0.7rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  cursor: pointer;
  opacity: 0.9;
}

/* This used to be --brand-soft, which in Trust's light mode is near-white: white
   text on it measured 1.16:1, so the label vanished on hover. */
.theme-toggle:hover {
  opacity: 1;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle[data-mode="dark"] .icon-moon {
  display: none;
}

.theme-toggle[data-mode="dark"] .icon-sun {
  display: inline;
}

/* ---------- print ---------- */

/*
 * A trade site gets printed: a quote, a services list pinned in the van. The
 * screen chrome is noise on paper, and the palette is usually unreadable, so
 * everything that carries meaning is forced back to black on white.
 */
@media print {
  html {
    color-scheme: light;
    scroll-behavior: auto;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .site-header,
  .callband,
  .cta,
  .callbar,
  .breadcrumb,
  .skip-link,
  .theme-toggle,
  .nav-toggle,
  .hero-actions,
  .section-foot,
  .contact-form,
  .form-note {
    display: none !important;
  }

  .hero,
  .page-head,
  .section--alt,
  .site-footer {
    background: #fff;
    color: #000;
    border-color: #000;
  }

  .page-head,
  .site-footer {
    border-top: 1px solid #000;
    padding: 0.5rem 0;
  }

  .wrap {
    max-width: none;
    padding: 0;
  }

  .card,
  .step,
  .quote,
  .hero-card,
  .hero-media,
  .about-media,
  .work-item,
  .gallery-item {
    box-shadow: none;
    border-color: #999;
    break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  /* The phone number is the point of the page, so make it obvious on paper. */
  .site-footer ul {
    font-size: 1.05em;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
