:root {
  color-scheme: dark;
  --bg: #090d18;
  --surface: #111827;
  --surface-2: #172033;
  --ink: #f8fafc;
  --muted: #aab5ca;
  --brand: #7692ff;
  --brand-strong: #5d7cff;
  --accent: #d35cff;
  --success: #63d6a0;
  --warning: #ffca72;
  --border: rgba(255, 255, 255, .11);
  --shadow: 0 18px 50px rgba(0, 0, 0, .25);
  --header: rgba(9, 13, 24, .88);
}

body.light {
  color-scheme: light;
  --bg: #f5f7fc;
  --surface: #ffffff;
  --surface-2: #edf1fa;
  --ink: #111827;
  --muted: #566177;
  --brand: #425fe6;
  --brand-strong: #2f49ca;
  --accent: #9229b8;
  --success: #11794d;
  --warning: #895800;
  --border: rgba(17, 24, 39, .11);
  --shadow: 0 18px 50px rgba(46, 56, 90, .12);
  --header: rgba(245, 247, 252, .92);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.wrap { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  display: flex;
  align-items: center;
  background: var(--header);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav-shell { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
}
.logo-mark {
  width: 32px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 8px 24px rgba(93, 124, 255, .3);
  color: #fff;
  font-size: 15px;
  letter-spacing: 0;
}
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}
.icon-button:hover { transform: translateY(-1px); border-color: var(--brand); }
.icon-button svg { width: 20px; height: 20px; }
.menu-button { display: none; }

.hero {
  position: relative;
  min-height: 610px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #070a12 url("ColourBurst.jpg") center / cover no-repeat;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 8, 16, .95), rgba(5, 8, 16, .76) 50%, rgba(5, 8, 16, .38)), linear-gradient(0deg, rgba(5, 8, 16, .72), transparent 45%);
}
.hero-content { max-width: 780px; padding: 90px 0 98px; }
.eyebrow, .section-kicker {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .115em;
  text-transform: uppercase;
}
.hero .eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #dce4ff; }
.hero .eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 999px; background: #8ca1ff; }
h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; line-height: 1.1; }
h1 { margin: 0 0 22px; font-size: clamp(2.65rem, 6.2vw, 5rem); letter-spacing: -.045em; text-wrap: balance; }
.hero h1 { color: #fff; }
.hero-copy { max-width: 700px; margin: 0 0 32px; color: rgba(255, 255, 255, .82); font-size: clamp(1.05rem, 2vw, 1.22rem); }
.trust-row { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: rgba(255, 255, 255, .74); font-size: .9rem; font-weight: 650; }
.trust-row span::before { content: "✓"; margin-right: 7px; color: #aab9ff; }

.page-hero { padding: 88px 0 62px; border-bottom: 1px solid var(--border); background: radial-gradient(circle at 88% 0%, rgba(118, 146, 255, .18), transparent 32%); }
.page-hero h1 { max-width: 850px; font-size: clamp(2.5rem, 6vw, 4.7rem); }
.page-hero .lead { max-width: 760px; }
.breadcrumb { margin-bottom: 22px; color: var(--muted); font-size: .88rem; }
.breadcrumb a { text-underline-offset: 4px; }

section { padding: 88px 0; }
.section-soft { background: var(--surface); border-block: 1px solid var(--border); }
.section-heading { max-width: 720px; margin-bottom: 34px; }
h2 { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.035em; }
h3 { margin: 0 0 10px; font-size: 1.24rem; }
.lead { margin: 0; color: var(--muted); font-size: 1.06rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(66, 95, 230, .25);
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--brand-strong); }
.btn.secondary { border-color: var(--border); background: var(--surface); color: var(--ink); box-shadow: none; }
.hero .btn.secondary { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .1); color: #fff; backdrop-filter: blur(12px); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 28px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.section-soft .card { background: var(--bg); box-shadow: none; }
.card p { margin: 0; color: var(--muted); }
.card-icon { width: 46px; height: 46px; margin-bottom: 22px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, rgba(118, 146, 255, .2), rgba(211, 92, 255, .12)); color: var(--brand); font-weight: 800; }
.link-card { position: relative; min-height: 245px; display: flex; flex-direction: column; text-decoration: none; }
.link-card .arrow { margin-top: auto; padding-top: 22px; color: var(--brand); font-weight: 800; }
.link-card:hover { border-color: var(--brand); transform: translateY(-2px); }

.notice { padding: 22px 24px; border: 1px solid color-mix(in srgb, var(--warning), transparent 60%); border-radius: 16px; background: color-mix(in srgb, var(--warning), transparent 91%); }
.notice strong { display: block; margin-bottom: 6px; color: var(--ink); }
.notice p { margin: 0; color: var(--muted); }
.notice-list { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
.notice-list li + li { margin-top: 6px; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { display: flex; flex-direction: column; }
.product-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: var(--surface-2); color: var(--brand); font-size: .72rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.badge.new { background: color-mix(in srgb, var(--success), transparent 86%); color: var(--success); }
.price { font-family: "Space Grotesk", Inter, sans-serif; font-size: 1.8rem; font-weight: 700; white-space: nowrap; }
.old-price { margin-right: 7px; color: var(--muted); font-size: .9rem; text-decoration: line-through; }
.specs { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; color: var(--muted); font-size: .92rem; }
.specs strong { color: var(--ink); }
.product-card .stock-note { margin-top: auto; padding-top: 20px; font-size: .82rem; }

.table-tools { margin: 0 0 20px; display: flex; align-items: end; gap: 14px; flex-wrap: wrap; }
.field { display: grid; gap: 7px; }
.field label { color: var(--muted); font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
select, input[type="number"] { min-height: 48px; padding: 10px 13px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 15px 16px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
th { background: var(--surface-2); color: var(--muted); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--brand), transparent 95%); }
td:first-child { color: var(--ink); font-weight: 800; }
.table-note { margin-top: 16px; color: var(--muted); font-size: .86rem; }

.calculator { display: grid; grid-template-columns: 1fr .8fr; gap: 24px; align-items: start; }
.calculator-fields { display: grid; gap: 18px; }
.estimate-card { position: sticky; top: 96px; }
.estimate-label { color: var(--muted); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.estimate-total { margin: 4px 0 12px; font-family: "Space Grotesk", Inter, sans-serif; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; line-height: 1; }
.estimate-breakdown { display: grid; gap: 8px; color: var(--muted); }
.estimate-breakdown div { display: flex; justify-content: space-between; gap: 20px; }

.rate-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rate-row { display: flex; justify-content: space-between; gap: 18px; padding: 19px 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.rate-row strong:last-child { white-space: nowrap; color: var(--brand); font-size: 1.08rem; }
.rate-row small { display: block; margin-top: 3px; color: var(--muted); font-weight: 500; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; }
.contact-card { display: grid; gap: 22px; align-content: start; }
.contact-item small { display: block; margin-bottom: 4px; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-item a { font-weight: 700; text-decoration-color: var(--brand); text-underline-offset: 4px; }
.map-card { min-height: 420px; padding: 0; overflow: hidden; }
.map-card iframe { width: 100%; height: 100%; min-height: 420px; display: block; border: 0; }
.workorder-shell { display: grid; grid-template-columns: .72fr 1.28fr; gap: 24px; align-items: start; }
.workorder-copy { position: sticky; top: 100px; }
.pdf-card { padding: 0; overflow: hidden; min-height: 650px; }
.pdf-card iframe { width: 100%; height: 650px; display: block; border: 0; background: #fff; }

footer { padding: 34px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.footer-row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .grid-3, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .workorder-shell { grid-template-columns: 1fr; }
  .workorder-copy { position: static; }
}

@media (max-width: 780px) {
  html { scroll-padding-top: 78px; }
  .wrap { width: min(100% - 28px, 1140px); }
  header { min-height: 64px; }
  .logo { font-size: .88rem; }
  .logo-mark { width: 30px; }
  .menu-button { display: grid; }
  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    padding: 12px 14px 16px;
    background: var(--header);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
  }
  .nav-links.open { display: grid; }
  .nav-links a { padding: 12px 14px; font-size: .95rem; }
  .hero { min-height: 580px; background-position: 58% center; }
  .hero::before { background: rgba(5, 8, 16, .77); }
  .hero-content { padding: 78px 0; }
  h1 { font-size: clamp(2.45rem, 13vw, 4rem); }
  .page-hero { padding: 66px 0 48px; }
  section { padding: 68px 0; }
  .grid-3, .product-grid, .calculator, .rate-list { grid-template-columns: 1fr; }
  .estimate-card { position: static; }
  .card { padding: 23px; }
  .pdf-card, .pdf-card iframe { min-height: 520px; height: 520px; }
}

@media (max-width: 480px) {
  .logo span:last-child { display: none; }
  th, td { padding: 13px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
