/* TradiesPage. Direction: "Site plan". Navy + orange from the original brand, blueprint grid, mono labels. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --navy: #1b2a4a;
  --navy-deep: #111b31;
  --orange: #f26522;
  --orange-ink: #ff7a3d;      /* orange used as text on navy, for contrast */
  --paper: #eef1f4;          /* cool blueprint paper */
  --paper-2: #e2e7ed;
  --orange-on-light: #b9420f; /* orange used as text on paper, for contrast */
  --ink: #14171f;
  --muted: #545b69;
  --muted-on-dark: #b4bccb;
  --line: rgba(20, 23, 31, 0.14);
  --line-dark: rgba(255, 255, 255, 0.12);
  --grid-dark: rgba(255, 255, 255, 0.045);
  --grid-light: rgba(27, 42, 74, 0.06);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-stretch: 100%;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.02; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

/* Focus and skip link */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--orange); color: var(--navy-deep); padding: 12px 16px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Mono label with accent rule */
.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.label::before { content: ""; width: 28px; height: 2px; background: var(--orange); }
.dark .label { color: var(--muted-on-dark); }

/* Display headings: wide, uppercase */
.display {
  font-stretch: 112%; text-transform: uppercase; font-weight: 800;
  font-size: clamp(2.3rem, 6.2vw, 4.6rem); line-height: 0.98; letter-spacing: -0.015em;
  text-wrap: balance;
}
.h2 {
  font-stretch: 108%; text-transform: uppercase;
  font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1; text-wrap: balance;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 34em; }

/* Buttons: one primary style, one quiet style */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--font); font-weight: 700; font-size: 1rem; letter-spacing: 0.01em;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn-primary { background: var(--orange); color: var(--navy-deep); }
.btn-primary:hover { background: #ff7432; transform: translateY(-1px); }
.btn-quiet { background: transparent; color: inherit; border-color: currentColor; opacity: .9; }
.btn-quiet:hover { opacity: 1; }
.btn .arrow { width: 16px; height: 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 27, 49, 0.94); backdrop-filter: blur(8px);
  color: #fff; border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: #fff; }
.brand svg { width: 34px; height: 34px; }
.brand .word { font-weight: 800; font-stretch: 118%; font-size: 1.05rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--orange-ink); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--muted-on-dark);
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: #fff; }
.nav .btn { margin-left: 8px; min-height: 44px; padding: 8px 16px; }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 14px; background: transparent; color: #fff;
    border: 1px solid var(--line-dark); border-radius: var(--radius);
    font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-deep); border-bottom: 1px solid var(--line-dark);
    padding: 8px var(--gutter) 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { min-height: 48px; border-bottom: 1px solid var(--line-dark); padding: 0; }
  .nav .btn { margin: 16px 0 0; }
}

/* Blueprint grid backgrounds */
.dark {
  background-color: var(--navy-deep); color: #fff;
  background-image:
    linear-gradient(var(--grid-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px);
  background-size: 48px 48px;
}
.paper-grid {
  background-image:
    linear-gradient(var(--grid-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-light) 1px, transparent 1px);
  background-size: 48px 48px;
}

section { position: relative; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }

/* Corner registration marks, Heron style */
.marks::before, .marks::after {
  content: "+"; position: absolute; font-family: var(--mono); font-size: 18px; line-height: 1;
  color: var(--orange); opacity: .8;
}
.marks::before { top: 16px; left: 16px; }
.marks::after { bottom: 16px; right: 16px; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero .lede { color: var(--muted-on-dark); }
.hero .display em { font-style: normal; color: var(--orange-ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.spec {
  display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 8px 0 0; list-style: none;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-on-dark);
}
.spec li { display: inline-flex; align-items: center; gap: 8px; }
.spec li::before { content: ""; width: 6px; height: 6px; background: var(--orange); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

/* Phone mock */
.phone {
  justify-self: center; width: min(100%, 360px);
  border: 1px solid var(--line-dark); border-radius: 28px; padding: 14px;
  background: #0b1325; box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 6px rgba(255,255,255,.03);
}
.phone-top {
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 14px; border-bottom: 1px solid var(--line-dark);
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: var(--navy-deep);
  display: grid; place-items: center; font-weight: 800; font-size: .85rem;
}
.phone-top strong { display: block; font-size: .95rem; }
.phone-top div span { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-on-dark); }
.thread { display: grid; gap: 10px; padding: 16px 4px 6px; margin: 0; list-style: none; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: .9rem; line-height: 1.45; }
.msg.in { background: #1f2c48; color: #e8ecf4; border-bottom-left-radius: 4px; }
.msg.out { justify-self: end; background: var(--orange); color: var(--navy-deep); border-bottom-right-radius: 4px; }
.msg.sys {
  justify-self: center; max-width: 100%; background: transparent; padding: 4px 0;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-on-dark);
}
.phone-note { margin: 10px 4px 2px; font-size: .78rem; color: var(--muted-on-dark); line-height: 1.45; }

@media (prefers-reduced-motion: no-preference) {
  .js .thread .msg { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
  .js .thread .msg.show { opacity: 1; transform: none; }
}

/* Stat */
.stat-band { border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.stat {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px); align-items: end;
  padding: clamp(40px, 6vw, 72px) 0;
}
.stat .num { font-stretch: 125%; font-weight: 800; font-size: clamp(3.4rem, 11vw, 8.5rem); line-height: .85; color: var(--orange-ink); letter-spacing: -0.02em; }
.stat p { font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.35; max-width: 26em; margin: 0; }
.stat cite { display: block; margin-top: 12px; font-style: normal; font-family: var(--mono); font-size: .75rem; letter-spacing: .04em; color: var(--muted-on-dark); }
.stat cite a { color: #fff; }
@media (max-width: 700px) { .stat { grid-template-columns: 1fr; align-items: start; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); counter-reset: s; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 28px 28px 24px 0; border-right: 1px solid var(--line); }
.steps li + li { padding-left: 28px; }
.steps li:last-child { border-right: 0; }
.steps .n { font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; color: var(--orange-on-light); display: block; margin-bottom: 18px; }
.steps h3 { font-size: 1.35rem; font-stretch: 105%; text-transform: uppercase; margin-bottom: 10px; }
.steps p { color: var(--muted); }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0 8px; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin: 0; padding: 0; list-style: none; }
.features li { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.35); }
.features h3 { font-size: 1.05rem; text-transform: uppercase; font-stretch: 105%; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.features h3::before { content: ""; width: 10px; height: 10px; background: var(--orange); flex: none; }
.features p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plan {
  display: grid; align-content: start; gap: 18px; padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line-dark); background: rgba(255,255,255,.03); border-radius: var(--radius); position: relative;
}
.plan.pick { border: 2px solid var(--orange); }
.plan .tag {
  position: absolute; top: -13px; left: 24px; background: var(--orange); color: var(--navy-deep);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px;
}
.plan h3 { font-size: 1.4rem; text-transform: uppercase; font-stretch: 110%; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price strong { font-size: clamp(2.6rem, 5vw, 3.4rem); font-stretch: 115%; line-height: 1; }
.price span { font-family: var(--mono); font-size: .8rem; color: var(--muted-on-dark); text-transform: uppercase; letter-spacing: .06em; }
.plan > p { color: var(--muted-on-dark); margin: 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.ticks li::before { content: ""; width: 12px; height: 7px; margin-top: 8px; border-left: 2px solid var(--orange-ink); border-bottom: 2px solid var(--orange-ink); transform: rotate(-45deg); }
.plan .btn { justify-self: start; }
.terms-line { margin-top: 28px; font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-on-dark); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* Website add-on band */
.addon { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.addon-card { border: 2px solid var(--ink); padding: clamp(24px, 3vw, 36px); background: var(--paper); display: grid; gap: 16px; }
.addon-card .price strong { color: var(--ink); }
.addon-card .price span { color: var(--muted); }
.addon-card .ticks li::before { border-color: var(--orange); }
@media (max-width: 860px) { .addon { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 22px 0; min-height: 44px; font-weight: 700; font-size: 1.12rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 1.4rem; color: var(--orange-on-light); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); max-width: 46em; padding-bottom: 8px; }

/* Form */
.enquire .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.enquire .lede { color: var(--muted-on-dark); }
.direct { margin-top: 24px; font-family: var(--mono); font-size: .85rem; letter-spacing: .04em; }
.direct a { color: #fff; }
form.card { display: grid; gap: 18px; background: var(--paper); color: var(--ink); padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.field .opt { color: var(--muted); text-transform: none; letter-spacing: 0; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #8a8f9b; border-radius: var(--radius);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid var(--orange); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #b3261e; }
.err { color: #b3261e; font-size: .9rem; min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy-note { font-size: .88rem; color: var(--muted); margin: 0; }
.privacy-note a { color: var(--ink); }
.form-status { font-weight: 600; }
.form-status.bad { color: #b3261e; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
@media (max-width: 860px) { .enquire .wrap { grid-template-columns: 1fr; } }

/* Final CTA */
.final { text-align: left; }
.final .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--muted-on-dark); padding: 56px 0 32px; font-size: .95rem; border-top: 1px solid var(--line-dark); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h2 { font-family: var(--mono); font-weight: 500; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.foot a { color: var(--muted-on-dark); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .brand { margin-bottom: 14px; }
.copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-family: var(--mono); font-size: .75rem; letter-spacing: .04em; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* Simple content pages */
.page-hero { padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 6vw, 64px); }
.page-hero .wrap { display: grid; gap: 20px; }
.prose { max-width: 720px; padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 100px); }
.prose h2 { font-size: 1.3rem; text-transform: uppercase; font-stretch: 105%; margin: 2em 0 .6em; }
.prose p, .prose li { color: #2a2f3a; }
.prose a { color: var(--navy); }

/* Website page specifics */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.compare { width: 100%; border-collapse: collapse; font-size: 1rem; }
.compare th, .compare td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { font-family: var(--mono); font-weight: 500; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.nc { text-transform: none; }
