/* Electrician demo, Standard build: a clean, light trade site. One typeface, white and soft grey grounds,
   one brand colour (the prospect's own, darkened until white text on it reads at 4.5:1). */
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 400; font-display: swap; src: url(fonts/schibsted-400-v1.woff2) format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 700; font-display: swap; src: url(fonts/schibsted-700-v1.woff2) format('woff2'); }

:root {
  --ink: #10213a;
  --ink-soft: #4a5568;
  --line: #dde3ea;
  --soft: #f3f6f9;
  --white: #fff;
  --brand: #114bb0;
  --brand-tint: color-mix(in srgb, var(--brand) 9%, #fff);
  --alert: #b42318;
  --spark: #ffc83d;        /* the splash of colour: an electrical amber, always with dark ink on it */
  --spark-deep: #f2a900;
  --radius: 14px;
  --wrap: 1160px;
  --font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); }
::selection { background: var(--brand); color: #fff; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.4rem); margin-bottom: .6em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.small { font-size: .9375rem; color: var(--ink-soft); }
.skip { position: absolute; left: 12px; top: 12px; z-index: 20; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 700; text-decoration: none;
  clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip:focus { clip-path: none; width: auto; height: auto; overflow: visible; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 10px;
  font: 700 1.0625rem/1 var(--font); text-decoration: none; border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s, transform .12s; }
.btn svg { flex: none; }
.btn.call { background: var(--brand); color: #fff; }
.btn.call:hover { background: color-mix(in srgb, var(--brand) 85%, #000); }
.btn.quote { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn.quote:hover { background: var(--ink); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 1rem; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); border-top: 4px solid var(--spark); }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { font-weight: 700; font-size: 1.15rem; text-decoration: none; letter-spacing: -.01em; margin-right: auto; }
.menu { display: flex; gap: 26px; }
.menu a { text-decoration: none; font-weight: 700; font-size: 1rem; color: var(--ink-soft); padding: 8px 0; }
.menu a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(44px, 6vw, 88px); background: linear-gradient(var(--soft), #fff); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.where { margin: 0 0 12px; font-weight: 700; color: var(--brand); font-size: 1rem; }
h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.75rem); overflow-wrap: anywhere; }
.line { font-size: clamp(1.125rem, 1rem + .4vw, 1.3rem); color: var(--ink-soft); margin: 18px 0 0; max-width: 36ch; }
.urgent { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 8px 14px; border-radius: 999px; background: var(--spark);
  color: var(--ink); font-weight: 700; font-size: 1rem; text-decoration: none; }
.urgent::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.urgent:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.facts { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 8px; font-size: 1rem; color: var(--ink-soft); }
.facts li { display: flex; gap: 10px; align-items: baseline; }
.facts li::before { content: ""; flex: none; width: 16px; height: 16px; transform: translateY(3px);
  background: var(--brand); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.6 2.6 8l1.2-1.2 2.4 2.4 6-6L13.4 4.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.6 2.6 8l1.2-1.2 2.4 2.4 6-6L13.4 4.4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.facts a { color: var(--ink); font-weight: 700; }
.photo { position: relative; display: block; }
.photo img { position: relative; width: 100%; border-radius: 18px; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 20px 44px -18px rgba(16,33,58,.35); }
.hero .photo::before { content: ""; position: absolute; inset: 22px -18px -18px 22px; border-radius: 22px; background: var(--spark); }
.how .photo img { box-shadow: none; }   /* no shadow on the dark band: it would read as a glow */
.how .photo::before { content: ""; position: absolute; inset: -16px 26px 26px -16px; border-radius: 22px; background: var(--spark); }

/* ---------- jobs ---------- */
.jobs { padding: clamp(56px, 7vw, 96px) 0; }
.joblist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.joblist li { display: flex; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.joblist .n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--spark); color: var(--ink);
  font-weight: 700; font-size: .9375rem; transform: translateY(6px); }
.joblist .d { font-size: 1.0625rem; }

/* ---------- how ---------- */
.how { padding: clamp(56px, 7vw, 96px) 0; background: var(--ink); color: #fff; }
.how-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; position: relative; padding-left: 54px; color: #c9d6ea; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--spark); color: var(--ink); font-weight: 700; }
.steps b { display: block; color: #fff; font-size: 1.125rem; }
.how :focus-visible { outline-color: var(--spark); }

/* ---------- areas ---------- */
.areas { padding: clamp(56px, 7vw, 96px) 0; }
.areas p { margin: 0 0 18px; max-width: 60ch; }
.suburbs { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.suburbs li { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 1rem; background: #fff; }

/* ---------- quote ---------- */
section.quote { padding: clamp(56px, 7vw, 96px) 0; background: var(--soft); }
.quote-in { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 40px); }
.panel > p { margin: 0 0 22px; color: var(--ink-soft); }
form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: grid; gap: 6px; align-content: start; }
.field.wide { grid-column: 1 / -1; }
.field.send { align-content: end; }
.field.send .btn { width: 100%; }
label { font-weight: 700; font-size: .9375rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
input, select, textarea { font: 400 1rem/1.4 var(--font); color: var(--ink); background: #fff; border: 1.5px solid #b6c0cc; border-radius: 10px; padding: 12px 14px; width: 100%; caret-color: var(--brand); }
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
[aria-invalid="true"] { border-color: var(--alert); border-width: 2px; }
.err { margin: 0; color: var(--alert); font-weight: 700; font-size: .9375rem; }
.sent { background: var(--brand-tint); border-radius: 10px; padding: 20px 22px; }
.sent h3 { font-size: 1.35rem; margin-bottom: 6px; }
.sent p { margin: 0; }
.sent a { font-weight: 700; }
.panel > .small { margin: 18px 0 0; }
.callbox { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px 26px; }
.callbox-h { margin: 0 0 6px; font-weight: 700; color: #c9d6ea; }
.callbox-num { display: block; font-size: 1.9rem; font-weight: 700; letter-spacing: -.01em; color: var(--spark); text-decoration: none; white-space: nowrap; }
.callbox-num:hover { text-decoration: underline; }
.callbox p:last-child { margin: 10px 0 0; color: #c9d6ea; font-size: .9375rem; }

/* ---------- emergency and footer ---------- */
.emergency { padding: 36px 0; }
.emergency .wrap { border: 2px solid var(--alert); border-radius: var(--radius); padding: 22px 26px; }
.emergency h2 { font-size: 1.35rem; color: var(--alert); margin-bottom: 6px; }
.emergency p { margin: 0; max-width: 75ch; }
.emergency a { font-weight: 700; }
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.foot p { margin: 0 0 6px; }
.foot .fname { font-weight: 700; font-size: 1.15rem; }
.foot a { font-weight: 700; }
.foot .small { margin-top: 14px; }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .menu { display: none; }
  .hero-in, .how-in, .quote-in { grid-template-columns: 1fr; }
  .joblist { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero .photo::before { inset: 14px -8px -10px 14px; }
  .how .photo::before { inset: -10px 14px 14px -8px; }
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .top-in { gap: 12px; min-height: 62px; }
  .brand { font-size: 1.02rem; }
  .top .btn.small { padding: 0 12px; }
  .hero { padding-top: 20px; }
  .actions .btn { flex: 1 1 100%; }
  form { grid-template-columns: 1fr; }
  .callbox-num { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
