@font-face { font-family: Bricolage; src: url('fonts/BricolageGrotesque.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: Instrument; src: url('fonts/InstrumentSans.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --paper: #fff6e5;
  --ink: #332139;
  --orange: #f16a3b;
  --orange-hover: #ff8255;
  --soft: #f5ead7;
  --line: #d9caba;
  --muted: #66516a;
  --error: #a8321a;
  --error-tint: #fde3d6;
  --display: Bricolage, Arial, sans-serif;
  --body: Instrument, Arial, sans-serif;
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.55 var(--body); }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 4px; }
button, input, textarea { font: inherit; color: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
h1, h2, h3, .promise, legend { font-family: var(--display); letter-spacing: -.04em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(42px, 5.4vw, 70px); font-weight: 750; }
h2 { font-size: clamp(32px, 3.2vw, 42px); font-weight: 700; margin-bottom: 20px; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.note { font-size: 15px; color: var(--muted); }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10; transform: translateY(-180%); background: var(--ink); color: var(--paper); padding: 12px; }
.skip-link:focus { transform: none; }
section[id] { scroll-margin-top: 16px; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 13px 26px; border: 0; border-radius: 10px; background: var(--orange); color: var(--ink); font: 650 19px/1.25 var(--body); text-decoration: none; transition: background-color .15s ease; }
.button:hover { background: var(--orange-hover); }
.button.dark { background: var(--ink); color: var(--paper); }
.button.dark:hover { background: #503655; }
.button.small { min-height: 48px; padding: 10px 20px; font-size: 17px; }
.text-button { display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border: 0; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover { text-decoration-thickness: 2px; }

/* Header */
.header { display: flex; align-items: center; gap: 28px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.brand { display: block; width: 240px; flex-shrink: 0; margin-right: auto; }
.brand img { display: block; width: 100%; height: auto; }
.nav { display: flex; gap: 26px; font-size: 16px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.header-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--orange); font-size: 16px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.header-cta:hover { background: var(--orange-hover); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 52px 60px; }
.helper { display: inline-block; width: .9em; height: auto; vertical-align: -.04em; margin-left: .06em; }
.lede { font-size: 20px; max-width: 34em; margin: 20px 0 18px; }
.facts { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; font-size: 15px; font-weight: 600; }
.ryan { display: flex; gap: 22px; align-items: center; background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.ryan img { display: block; width: 160px; height: 200px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.ryan h2 { font-size: 30px; margin-bottom: 10px; }
.ryan p { font-size: 17px; }

/* Sections */
.section { padding-block: 64px; border-top: 1px solid var(--line); }
.services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.services .other { grid-column: 1 / -1; }
.tile { display: block; min-height: 44px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 15px 18px; font-weight: 650; line-height: 1.35; text-decoration: none; }
.tile:hover { border-color: var(--ink); }
.tile small { display: block; margin-top: 2px; font-size: 15px; font-weight: 400; color: var(--muted); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.steps li { counter-increment: step; position: relative; padding-top: 54px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); font-weight: 700; }
.steps p { font-size: 17px; }
.promise-row { display: flex; align-items: baseline; gap: 20px; padding: 20px 24px; background: var(--ink); color: var(--paper); border-radius: 14px; }
.promise-row p { margin: 0; }
.promise { font-size: 28px; font-weight: 700; color: var(--orange); white-space: nowrap; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }

/* Postcode check */
.check { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-top: 20px; }
.check label { display: block; font-weight: 650; margin-bottom: 8px; }
.check .row { display: flex; gap: 8px; }
.check-result { margin: 14px 0 0; padding: 12px 14px; border-left: 3px solid var(--ink); background: var(--paper); font-size: 16px; }
.check-result:empty { display: none; }
.check .note { margin-top: 12px; }
input, textarea { width: 100%; min-width: 0; padding: 11px 12px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; font-size: 17px; line-height: 1.4; }
input::placeholder, textarea::placeholder { color: #8a7a8c; }

/* Hours */
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours dt { font-weight: 650; }
.hours dd { margin: 0; text-align: right; }
.hours dd span { display: block; font-size: 15px; color: var(--muted); }

/* Message builder */
.intro { max-width: 40em; margin-bottom: 24px; }
.form-card { background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 28px; max-width: 760px; }
.step-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.step-heading p { margin: 0; font-size: 15px; font-weight: 650; color: var(--muted); }
.step-dots { display: flex; gap: 6px; }
.step-dots i { display: block; width: 28px; height: 4px; border-radius: 3px; background: var(--line); }
.step-dots .active { background: var(--ink); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; margin-bottom: 10px; padding: 0; width: 100%; }
legend:focus { outline: none; }
legend:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; border-radius: 2px; }
.field-hint { font-size: 15px; line-height: 1.5; color: var(--muted); margin-bottom: 14px; }
.enquiry-step > label { display: block; font-weight: 650; margin-bottom: 4px; }
.enquiry-step > label + .field-hint { margin-bottom: 10px; }
.enquiry-step textarea { min-height: 130px; resize: vertical; margin-bottom: 4px; }
.enquiry-step textarea + label { margin-top: 20px; }
.optional { font-weight: 400; color: var(--muted); }
.chosen { font-size: 16px; margin-bottom: 14px; }
.chosen:empty { display: none; }
.service-options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.service-option { display: block; position: relative; cursor: pointer; }
.service-option.other-option { grid-column: 1 / -1; }
.service-option input { position: absolute; left: 14px; top: 16px; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.service-option > span { display: block; height: 100%; padding: 13px 14px 13px 46px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 17px; font-weight: 650; line-height: 1.35; }
.service-option small { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--muted); }
.service-option input:checked + span { border: 2px solid var(--ink); padding: 12px 13px 12px 45px; }
.service-option input:focus-visible { outline: 0; }
.service-option input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
/* Errors: a pale orange panel with a brick edge and badge, placed above the field. */
.field-error, .check-result.is-error { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border-left: 4px solid var(--error); border-radius: 0 8px 8px 0; background: var(--error-tint); color: var(--ink); font-size: 16px; font-weight: 650; line-height: 1.4; }
.field-error::before, .check-result.is-error::before { content: '!'; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--error); color: #fff; font-size: 14px; font-weight: 800; line-height: 1; }
.check-result.is-error { margin: 14px 0 0; }
.field-error:empty { display: none; }
input:not([type="radio"])[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.service-option input[aria-invalid="true"] + span { border-color: var(--error); }
.enquiry-coverage { font-size: 16px; padding: 12px 14px; border-left: 3px solid var(--ink); margin-bottom: 18px; background: var(--paper); }
.enquiry-coverage:empty { display: none; }
#copy-result:empty { display: none; }
.step-actions { display: flex; justify-content: flex-end; align-items: center; gap: 24px; margin-top: 24px; }
.step-actions .button { min-width: 180px; }
.direct-contact { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 22px; font-size: 16px; color: var(--muted); }

/* Footer */
.footer { padding-block: 28px 36px; border-top: 1px solid var(--line); font-size: 15px; }
.footer-line { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.footer-name { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.attribution { font-size: 13px; line-height: 1.6; margin-top: 12px; color: var(--muted); }
.attribution summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; }
.attribution a { display: inline-block; padding-block: 8px; }

/* Dialog */
dialog { max-width: min(480px, calc(100% - 32px)); padding: 28px; border: 0; border-radius: 14px; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #33213999; }
dialog h2 { font-size: 28px; }
dialog p { font-size: 17px; margin-bottom: 20px; }

/* Tablets */
@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ryan { max-width: 560px; }
  .header { gap: 20px; }
  .nav { gap: 18px; }
}

/* Phones */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 40px); }
  .header { flex-wrap: wrap; gap: 4px 12px; padding-block: 14px 0; }
  .brand { width: 190px; }
  .header-cta { min-height: 44px; padding: 0 16px; font-size: 15px; }
  .nav { order: 3; width: 100%; justify-content: space-between; gap: 8px; font-size: 15px; }
  h1 { font-size: clamp(38px, 10.6vw, 46px); }
  .lede { font-size: 18px; margin: 16px 0 14px; }
  .facts { gap: 6px; margin-bottom: 20px; }
  .facts li { font-size: 14px; padding: 4px 11px; }
  .hero { padding-block: 28px 40px; gap: 24px; }
  .button { width: 100%; }
  .ryan { align-items: flex-start; gap: 14px; padding: 14px; }
  .ryan img { width: 96px; height: 120px; border-radius: 10px; }
  .ryan h2 { font-size: 25px; margin-bottom: 6px; }
  .ryan p { font-size: 16px; line-height: 1.45; }
  .section { padding-block: 40px; }
  h2 { font-size: 31px; margin-bottom: 16px; }
  .services { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .tile { display: flex; align-items: center; min-height: 56px; padding: 10px 14px; font-size: 16px; }
  .tile small { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 22px; }
  .steps li { padding: 0 0 0 54px; min-height: 40px; }
  .steps h3 { font-size: 19px; padding-top: 8px; }
  .steps p { font-size: 16px; }
  .promise-row { flex-direction: column; gap: 6px; padding: 18px 20px; }
  .two { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .check { padding: 16px; }
  .check .button { width: auto; }
  .hours div { gap: 12px; }
  .form-card { padding: 16px 14px; border-radius: 14px; }
  .step-heading { margin-bottom: 12px; }
  .step-heading p { font-size: 14px; }
  .step-dots i { width: 22px; }
  legend { font-size: 22px; margin-bottom: 6px; }
  .field-hint { font-size: 14px; margin-bottom: 10px; }
  .chosen { font-size: 15px; margin-bottom: 10px; }
  .service-options { gap: 8px; }
  .service-option > span { display: flex; align-items: center; min-height: 52px; padding: 8px 8px 8px 36px; font-size: 16px; line-height: 1.25; }
  .service-option small { display: none; }
  .service-option input:checked + span { padding: 7px 7px 7px 35px; }
  .service-option input { left: 10px; top: calc(50% - 10px); }
  .enquiry-step textarea { min-height: 0; height: 104px; }
  .enquiry-step textarea + label { margin-top: 14px; }
  #message-preview { height: 168px; }
  .enquiry-coverage { font-size: 15px; padding: 10px 12px; margin-bottom: 12px; }
  .step-actions { gap: 16px; margin-top: 16px; }
  .direct-contact { margin-top: 14px; padding-top: 10px; font-size: 15px; }
  .form-card { scroll-margin-top: 12px; }
  .step-actions .button { width: auto; min-width: 0; flex: 1; }
  .footer-line { flex-direction: column; gap: 2px; }
}

@media (max-width: 360px) {
  .brand { width: 160px; }
  .nav { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
