/* ============================================================
   TRADES WEBSITE TEMPLATE: STYLES
   Look: job-sheet paper, ink, safety orange. Signage type.
   Change your brand in one place: the two accent values below.
   Fonts: Barlow Condensed (headings) + Public Sans (body),
   loaded in each page's <head>.
   ============================================================ */

:root {
  /* EDIT these two to re-brand the whole site */
  --accent: oklch(66% 0.17 55);        /* safety orange */
  --accent-deep: oklch(57% 0.16 50);

  /* Paper and ink. Tinted, never pure white or black. */
  --paper: oklch(96.5% 0.012 85);
  --paper-deep: oklch(93% 0.018 85);
  --ink: oklch(25% 0.03 255);
  --ink-deep: oklch(20% 0.028 255);
  --ink-soft: oklch(45% 0.02 255);
  --line: oklch(84% 0.02 85);
  --line-dark: oklch(38% 0.025 255);
  --paper-on-ink: oklch(93% 0.012 85);
  --muted-on-ink: oklch(72% 0.015 255);

  --radius: 6px;
  --max: 1120px;

  /* The signature: hazard tape */
  --hazard: repeating-linear-gradient(135deg,
      var(--accent) 0 12px, var(--ink) 12px 24px);
}

/* Fallback for older browsers that don't know oklch */
@supports not (color: oklch(50% 0 0)) {
  :root {
    --accent: #e0801f;
    --accent-deep: #bf6812;
    --paper: #f7f2e8;
    --paper-deep: #eee6d6;
    --ink: #232b39;
    --ink-deep: #1a2130;
    --ink-soft: #5a6474;
    --line: #ddd2bd;
    --line-dark: #46536b;
    --paper-on-ink: #efeadf;
    --muted-on-ink: #a5adbd;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* The hazard tape strip across the very top of every page */
body::before {
  content: "";
  display: block;
  height: 6px;
  background: var(--hazard);
}

h1, h2, h3, .logo, .btn, .svc-num, .proc-num, .cta-phone, .ticket-head {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
}

img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; }

/* Photo slots: a chosen photo fills the placeholder, keeping its shape. */
[data-photo] { position: relative; overflow: hidden; }
[data-photo] img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
[data-photo].has-img { background: none; }

/* ============================================================
   INTRO ANIMATION: rise, sharpen, fade, element by element.
   fill-mode "both" holds the start state, so no static opacity 0.
   ============================================================ */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
.hero .kicker  { animation: rise 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.05s both; }
.hero h1       { animation: rise 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.14s both; }
.hero .lead    { animation: rise 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.26s both; }
.hero .actions { animation: rise 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.38s both; }
.hero .ticket  { animation: rise 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.30s both; }
.trust-strip span { animation: rise 0.6s ease-out both; }
.trust-strip span:nth-child(1) { animation-delay: 0.50s; }
.trust-strip span:nth-child(2) { animation-delay: 0.58s; }
.trust-strip span:nth-child(3) { animation-delay: 0.66s; }
.trust-strip span:nth-child(4) { animation-delay: 0.74s; }
.trust-strip span:nth-child(5) { animation-delay: 0.82s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink-deep);
  color: var(--muted-on-ink);
  font-size: 14px;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar span { display: inline-flex; align-items: center; gap: 7px; }
.topbar a { color: var(--paper-on-ink); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a .icon { color: var(--accent); }
.topbar a:hover { color: var(--accent); }

/* ---------- Header / nav ---------- */
header.site {
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
}
header.site .container { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; gap: 16px; }
.logo {
  font-size: 27px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
nav.main { display: flex; gap: 26px; align-items: center; }
nav.main > a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px; position: relative; }
nav.main > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px;
  background: var(--accent); transition: right 0.25s ease;
}
nav.main > a:not(.btn):hover::after { right: 0; }

/* ============================================================
   BUTTONS: pill, solid safety orange, lift on hover, and a
   1px border beam that orbits the pill while hovered.
   ============================================================ */
@property --beam { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: var(--paper);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 11px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  isolation: isolate;
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.25), 3px 3px 0 oklch(25% 0.03 255 / 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translate(-1px, -2px); box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.25), 5px 6px 0 oklch(25% 0.03 255 / 0.25); }
.btn:active { transform: translate(0, 0); box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.25), 2px 2px 0 oklch(25% 0.03 255 / 0.22); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn::before {
  content: ""; position: absolute; inset: -4px; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--beam), transparent 0deg 300deg, var(--accent) 332deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0; transition: opacity 0.25s ease; pointer-events: none; z-index: -1;
}
.btn:hover::before { opacity: 1; animation: beam 1.3s linear infinite; }
@keyframes beam { to { --beam: 360deg; } }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: none;
}
.btn.ghost::before { display: none; }
.btn.ghost:hover { background: oklch(25% 0.03 255 / 0.06); transform: none; box-shadow: none; }
.btn.big { padding: 15px 34px; font-size: 21px; }

/* ---------- Hero: asymmetric, headline left, job sheet right ---------- */
.hero { padding: 72px 0 56px; }
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr);
  gap: 48px;
  align-items: start;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 34px; height: 5px; background: var(--hazard); }
.hero h1 {
  font-size: clamp(46px, 6.5vw, 78px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.005em;
  text-wrap: balance;
  max-width: 13ch;
}
.hero .lead { margin: 22px 0 30px; font-size: 19px; color: var(--ink-soft); max-width: 46ch; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* The job sheet: your credentials set out like a record card */
.ticket {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--paper-deep), 8px 8px 0 1.5px var(--ink);
}
.ticket-head {
  display: flex; justify-content: space-between; align-items: baseline;
  background: var(--ink);
  color: var(--paper-on-ink);
  font-size: 17px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 9px 16px;
}
.ticket-head em { font-style: normal; color: var(--accent); }
.ticket dl { margin: 0; }
.ticket .trow { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.ticket .trow:last-child { border-bottom: none; }
.ticket dt { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); padding-top: 3px; }
.ticket dd { font-weight: 600; font-size: 16px; }
.ticket .stars { display: inline-flex; gap: 1px; color: var(--accent-deep); vertical-align: -2px; margin-right: 6px; }
.ticket .stars .icon { width: 15px; height: 15px; }

/* ---------- Trust strip: one ruled line of proof ---------- */
.trust-strip {
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper-deep);
  padding: 13px 0;
}
.trust-strip .container { display: flex; gap: 12px 34px; flex-wrap: wrap; font-weight: 600; font-size: 15px; }
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip .icon { color: var(--accent-deep); }

/* ---------- Section scaffolding ---------- */
section { padding: 76px 0; }
.sec-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 12px;
}
.sec-label::before { content: ""; width: 26px; height: 5px; background: var(--hazard); }
h2 {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.sec-intro { color: var(--ink-soft); max-width: 54ch; }

/* Split sections: heading column left, content right */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px 64px; align-items: start; }
.split > header { position: sticky; top: 96px; }

/* ---------- Services: a numbered index, not cards ---------- */
.svc-list { list-style: none; border-top: 1.5px solid var(--ink); }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-list li:last-child { border-bottom: 1.5px solid var(--ink); }
.svc-list a, .svc-list .row-priced {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 40px;
  gap: 18px;
  align-items: baseline;
  padding: 22px 6px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, padding-left 0.25s cubic-bezier(0.19, 1, 0.22, 1);
}
.svc-list a:hover { background: var(--paper-deep); padding-left: 16px; }
.svc-num { font-size: 21px; font-weight: 600; color: var(--accent-deep); }
.svc-list h3 { font-size: 27px; font-weight: 700; line-height: 1.1; margin-bottom: 4px; }
.svc-list p { color: var(--ink-soft); font-size: 16px; max-width: 62ch; }
.svc-arrow { color: var(--ink); opacity: 0.35; transition: opacity 0.2s ease, transform 0.25s ease; align-self: center; }
.svc-list a:hover .svc-arrow { opacity: 1; transform: translateX(4px); color: var(--accent-deep); }

/* Priced variant (services page): price sits right */
.svc-list .price {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--accent-deep);
  max-width: 190px;
  text-align: right;
  line-height: 1.2;
  justify-self: end;
}
.svc-list .row-priced { grid-template-columns: 56px minmax(0, 1fr) auto; }
.svc-list .row-priced:hover { background: var(--paper-deep); padding-left: 16px; }

/* ---------- Process: ink band, ghost numerals ---------- */
.proc { background: var(--ink); color: var(--paper-on-ink); }
.proc .sec-label { color: var(--accent); }
.proc h2 { color: var(--paper-on-ink); }
.proc .sec-intro { color: var(--muted-on-ink); }
.proc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-top: 48px; }
.proc-step { border-top: 1.5px solid var(--line-dark); padding-top: 18px; position: relative; }
.proc-num {
  font-size: 74px; font-weight: 700; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-dark);
  display: block; margin-bottom: 10px;
}
.proc-step h3 { font-size: 25px; font-weight: 700; margin-bottom: 6px; }
.proc-step p { color: var(--muted-on-ink); font-size: 16px; line-height: 1.7; }

/* ---------- Reviews: one featured voice, two supporting ---------- */
.reviews-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 56px; align-items: start; }
.review-feature { border-top: 1.5px solid var(--ink); padding-top: 22px; }
.review-feature .qmark {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 96px; font-weight: 700; line-height: 0.6;
  color: var(--accent);
  display: block; margin: 18px 0 2px;
}
.review-feature blockquote {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  margin: 10px 0 20px;
}
.review-side .review { border-top: 1px solid var(--line); padding: 20px 0; }
.review-side .review:first-child { border-top: 1.5px solid var(--ink); }
.review-side blockquote { font-size: 16px; color: var(--ink-soft); margin-bottom: 10px; }
.review cite { font-style: normal; font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; }
.review cite::before { content: ""; width: 18px; height: 4px; background: var(--hazard); }
.review-feature .stars, .review-side .stars { display: inline-flex; gap: 2px; color: var(--accent-deep); }
.review-feature .stars .icon { width: 17px; height: 17px; }
.review-side .stars .icon { width: 13px; height: 13px; }

/* ---------- Areas: signage, not chips ---------- */
.area-line {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.5;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding: 22px 0;
}
.area-line b { color: var(--accent-deep); font-weight: 600; padding: 0 10px; }

/* ---------- FAQ: ruled list ---------- */
.faq { border-top: 1.5px solid var(--ink); }
details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
details:last-of-type { border-bottom: 1.5px solid var(--ink); }
details summary {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700; font-size: 23px; line-height: 1.2;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; font-size: 26px; font-weight: 600; color: var(--accent-deep);
  transition: transform 0.2s ease; flex: none;
}
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 10px; color: var(--ink-soft); max-width: 68ch; }

/* ---------- CTA: the phone number, painted like a van ---------- */
.cta-band { background: var(--ink); color: var(--paper-on-ink); padding: 72px 0; position: relative; }
.cta-band::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--hazard); }
.cta-band .container { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 56px; align-items: center; }
.cta-band h2 { color: var(--paper-on-ink); margin-bottom: 8px; }
.cta-band p { color: var(--muted-on-ink); max-width: 44ch; }
.cta-call { text-align: right; }
.cta-phone {
  display: block;
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.cta-phone:hover { color: var(--paper-on-ink); }
.cta-sub { display: block; margin-top: 10px; font-size: 15px; color: var(--muted-on-ink); }
.cta-sub a { color: var(--paper-on-ink); font-weight: 700; }

/* ---------- Forms ---------- */
form.enquiry { max-width: 560px; }
form.enquiry label { display: block; font-weight: 700; margin: 20px 0 6px; font-size: 15px; }
form.enquiry input, form.enquiry select, form.enquiry textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: inherit;
  background: var(--paper);
  color: var(--ink);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
form.enquiry input:focus, form.enquiry select:focus, form.enquiry textarea:focus {
  outline: none;
  border-color: var(--accent-deep);
  box-shadow: 3px 3px 0 var(--paper-deep), 3px 3px 0 1.5px var(--accent-deep);
}
form.enquiry textarea { min-height: 120px; resize: vertical; }
form.enquiry .hint { font-size: 14px; color: var(--ink-soft); margin-top: 5px; }
form.enquiry button { margin-top: 28px; }

/* ---------- Contact methods: ruled rows ---------- */
.contact-rows { border-top: 1.5px solid var(--ink); max-width: 640px; }
.contact-rows .crow { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.contact-rows .crow:last-child { border-bottom: 1.5px solid var(--ink); }
.contact-rows h3 {
  font-size: 22px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 9px;
}
.contact-rows h3 .icon { color: var(--accent-deep); }
.contact-rows p { color: var(--ink-soft); font-size: 16px; }
.contact-rows a { color: var(--ink); font-weight: 700; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.contact-rows a:hover { color: var(--accent-deep); }

/* ---------- Generic box (used by optional content blocks) ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 24px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 16px; }

/* Photo placeholder for optional content blocks (trust-content-blocks.md) */
.ph { display: block; width: 100%; aspect-ratio: 4 / 3; border: 1.5px solid var(--ink); background: var(--paper-deep); border-radius: var(--radius); margin-bottom: 14px; }

/* ---------- Footer ---------- */
footer.site { background: var(--ink-deep); color: var(--muted-on-ink); padding: 52px 0 32px; font-size: 15px; }
footer.site h4 {
  font-family: "Barlow Condensed", sans-serif;
  color: var(--paper-on-ink);
  font-size: 19px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 10px;
}
footer.site a { color: var(--muted-on-ink); text-decoration: none; }
footer.site a:hover { color: var(--accent); }
footer.site .cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 28px; }
footer.site .legal { border-top: 1px solid var(--line-dark); padding-top: 18px; font-size: 14px; }

/* ---------- Mobile ---------- */
.nav-toggle { display: none; background: none; border: none; font-size: 28px; color: var(--ink); cursor: pointer; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .split { grid-template-columns: 1fr; gap: 8px; }
  .split > header { position: static; margin-bottom: 24px; }
  .proc-grid { grid-template-columns: 1fr; gap: 28px; }
  .reviews-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-band .container { grid-template-columns: 1fr; }
  .cta-call { text-align: left; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  nav.main {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1.5px solid var(--ink);
    flex-direction: column; align-items: flex-start; padding: 16px 24px; gap: 14px;
  }
  nav.main.open { display: flex; }
  header.site .container { position: relative; }
  .hero { padding: 48px 0 40px; }
  section { padding: 52px 0; }
  .svc-list a, .svc-list .row-priced { grid-template-columns: 40px minmax(0, 1fr); }
  .svc-arrow { display: none; }
  .svc-list .price { justify-self: start; grid-column: 2; }
}

/* ---------- Sticky mobile call button ---------- */
.call-sticky { display: none; }
@media (max-width: 760px) {
  .call-sticky {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    position: fixed; bottom: 16px; left: 16px; right: 16px;
    background: linear-gradient(180deg, var(--accent), var(--accent-deep));
    color: var(--paper);
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700; font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase;
    padding: 14px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 3px 4px 0 oklch(25% 0.03 255 / 0.35);
    z-index: 60;
  }
  body { padding-bottom: 84px; }
}
