/* PROVE Commissioning — provecx.ca */
:root {
  --purple: #260C46;
  --purple-2: #3A1B63;
  --purple-ink: #1A0832;
  --gold: #D5A520;
  --gold-soft: #F4E7C3;
  --slate: #657080;
  --ink: #1E1B26;
  --muted: #5B6270;
  --light: #F2F2F5;
  --line: #E1E1E8;
  --white: #FFFFFF;
  --radius: 4px;
  --max: 1180px;
  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--purple); }
a:hover { color: var(--purple-2); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--purple); padding: 8px 14px; z-index: 100; font-weight: 700; }
.skip:focus { left: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: .02em;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--purple); border-bottom-color: var(--gold); }
.nav .btn { border-bottom: 0; padding: 11px 20px; font-size: 14.5px; }
.nav .btn:hover, .nav .btn[aria-current="page"] { color: var(--white); border-bottom: 0; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--purple); margin: 5px 0; transition: .2s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--purple); color: var(--white) !important;
  text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: .03em;
  padding: 14px 24px; border-radius: var(--radius); border: 2px solid var(--purple);
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--purple-2); transform: translateY(-1px); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--purple-ink) !important; }
.btn.gold:hover { background: #E2B431; }
.btn.ghost { background: transparent; color: var(--white) !important; border-color: rgba(255,255,255,.55); }
.btn.ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn.outline { background: transparent; color: var(--purple) !important; }
.btn.outline:hover { background: var(--purple); color: var(--white) !important; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { color: var(--purple); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(38px, 5.2vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 1.1em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--slate);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--gold); }
.lead { font-size: 20px; color: var(--muted); max-width: 720px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--purple); color: var(--white); overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; padding-top: 110px; padding-bottom: 120px; }
.hero h1 { color: var(--white); max-width: 820px; }
.hero h1 .check { color: var(--gold); }
.hero .lead { color: #D9D3E6; }
.hero .eyebrow { color: #C9C3D6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-art { position: absolute; right: 0; top: 40px; width: 500px; opacity: .9; z-index: 1; pointer-events: none; }
.hero .wrap.hero-strip { padding-top: 0; padding-bottom: 0; background: var(--purple); }
.hero-strip {
  position: relative; z-index: 3; border-top: 1px solid rgba(255,255,255,.14);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hero-strip div { padding: 26px 28px; border-right: 1px solid rgba(255,255,255,.14); }
.hero-strip div:last-child { border-right: 0; }
.hero-strip div:first-child { padding-left: 0; }
.hero-strip strong { display: block; color: var(--gold); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.hero-strip span { color: #E7E2EF; font-size: 15px; }

.page-hero { background: var(--purple); color: var(--white); position: relative; overflow: hidden; }
.page-hero .wrap { padding-top: 84px; padding-bottom: 84px; position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: clamp(34px, 4.4vw, 54px); max-width: 860px; }
.page-hero .lead { color: #D9D3E6; }
.page-hero .eyebrow { color: #C9C3D6; }
.page-hero::after {
  content: ""; position: absolute; right: 8%; top: -40px; bottom: -40px; width: 70px;
  background: var(--gold); transform: skewX(-23deg); opacity: .95;
}

/* ---------- Sections ---------- */
section { padding: 100px 0; }
.alt { background: var(--light); }
.section-head { max-width: 780px; margin-bottom: 54px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; position: relative; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: #CFC8DC; box-shadow: 0 14px 34px -18px rgba(38,12,70,.28); transform: translateY(-2px); }
.card .ico { width: 46px; height: 46px; margin-bottom: 20px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.card::before { content: ""; position: absolute; left: 30px; top: 0; width: 40px; height: 3px; background: var(--gold); }

/* Process */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.process li {
  list-style: none; counter-increment: step; padding: 34px 30px 36px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white);
}
.process li::before {
  content: counter(step, decimal-leading-zero); display: block;
  font-size: 13px; font-weight: 800; letter-spacing: .18em; color: var(--gold); margin-bottom: 14px;
}
.process h3 { font-size: 19px; }
.process p { color: var(--muted); font-size: 15.5px; margin: 0; }
ol.process { padding: 0; margin: 0; }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 0 0 14px 36px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 9px; height: 16px;
  border-right: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(40deg);
}

/* Phase detail (commissioning page) */
.phase { display: grid; grid-template-columns: 260px 1fr; gap: 54px; padding: 54px 0; border-top: 1px solid var(--line); }
.phase:first-of-type { border-top: 0; padding-top: 0; }
.phase-label { position: sticky; top: 110px; align-self: start; }
.phase-label .num { font-size: 56px; font-weight: 800; color: var(--gold); line-height: 1; letter-spacing: -.03em; }
.phase-label h3 { margin-top: 10px; font-size: 24px; }
.phase-body p { color: var(--muted); }
.phase-body h4 { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); margin: 26px 0 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span { background: var(--light); border: 1px solid var(--line); border-radius: 30px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--purple); }

/* Systems */
.systems { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.systems div { background: var(--white); border: 1px solid var(--line); padding: 22px 22px; border-radius: var(--radius); font-weight: 600; color: var(--purple); display: flex; gap: 14px; align-items: center; font-size: 15.5px; }
.systems svg { width: 30px; height: 30px; flex: 0 0 30px; }

/* Quote / statement */
.statement { background: var(--purple); color: var(--white); position: relative; overflow: hidden; }
.statement .wrap { position: relative; z-index: 2; }
.statement blockquote { margin: 0; font-size: clamp(24px, 2.8vw, 34px); font-weight: 700; line-height: 1.35; max-width: 900px; }
.statement blockquote em { color: var(--gold); font-style: normal; }
.statement .bar { position: absolute; right: -60px; top: -60px; bottom: -60px; width: 120px; background: var(--gold); transform: skewX(-23deg); opacity: .14; }

/* Deliverables table */
.deliver { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
.deliver th, .deliver td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15.5px; }
.deliver th { background: var(--purple); color: var(--white); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.deliver td:first-child { font-weight: 700; color: var(--purple); width: 32%; }
.deliver td { color: var(--muted); }

/* Team */
.person { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: center; padding: 30px; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); }
.avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--purple); color: var(--white); display: grid; place-items: center; font-weight: 800; font-size: 30px; letter-spacing: .02em; position: relative; }
.avatar::after { content: ""; position: absolute; right: 6px; bottom: 6px; width: 18px; height: 18px; background: var(--gold); border-radius: 50%; border: 3px solid var(--white); }
.person h3 { margin: 0 0 2px; }
.person p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* CTA band */
.cta { background: var(--light); padding: 84px 0; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta h2 { margin: 0; max-width: 640px; }
.cta p { margin: 8px 0 0; color: var(--muted); }

/* Contact */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: block; font-size: 14px; font-weight: 700; color: var(--purple); margin-bottom: 6px; letter-spacing: .02em; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 15px; border: 1px solid #CFCFD8; border-radius: var(--radius); background: var(--white); color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(213,165,32,.35); }
.form textarea { min-height: 150px; resize: vertical; }
.form .note { font-size: 14px; color: var(--muted); margin: 0; }
.contact-card { background: var(--purple); color: var(--white); padding: 40px 36px; border-radius: var(--radius); position: relative; overflow: hidden; }
.contact-card h3 { color: var(--white); }
.contact-card a { color: var(--gold); font-weight: 700; font-size: 20px; text-decoration: none; }
.contact-card p { color: #D9D3E6; }
.contact-card::after { content: ""; position: absolute; right: -20px; top: -30px; bottom: -30px; width: 46px; background: var(--gold); transform: skewX(-23deg); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { background: var(--light); border-left: 4px solid var(--gold); padding: 28px 30px; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { margin: 0; color: var(--muted); }
.form button[disabled] { opacity: .6; cursor: wait; }

/* ---------- Admin ---------- */
.admin-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 26px; }
.admin-bar label { font-size: 13px; font-weight: 700; color: var(--purple); display: block; margin-bottom: 4px; }
.admin-bar input, .admin-bar select { font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid #CFCFD8; border-radius: var(--radius); }
.enq { border: 1px solid var(--line); border-left: 4px solid var(--gold); background: var(--white); padding: 22px 24px; margin-bottom: 16px; border-radius: var(--radius); }
.enq[data-status="closed"], .enq[data-status="won"] { border-left-color: var(--slate); opacity: .8; }
.enq header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.enq h3 { margin: 0; font-size: 19px; }
.enq .meta { font-size: 14px; color: var(--muted); }
.enq .msg { white-space: pre-wrap; background: var(--light); padding: 14px 16px; border-radius: var(--radius); font-size: 15px; margin: 12px 0; }
.enq .ctrl { display: flex; flex-wrap: wrap; gap: 10px; align-items: start; }
.enq textarea { flex: 1 1 320px; font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid #CFCFD8; border-radius: var(--radius); min-height: 60px; }
.enq select { font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid #CFCFD8; border-radius: var(--radius); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--gold-soft); color: var(--purple); }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-ink); color: #BDB5CC; padding: 70px 0 34px; font-size: 15px; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding-bottom: 46px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer img { height: 54px; width: auto; margin-bottom: 18px; }
.site-footer h4 { color: var(--white); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #E4DEEE; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 26px; font-size: 13.5px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-3, .process { grid-template-columns: 1fr 1fr; }
  .systems { grid-template-columns: 1fr 1fr; }
  .hero-art { width: 420px; opacity: .35; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .lead { font-size: 17.5px; }
  .eyebrow { font-size: 11.5px; letter-spacing: .16em; }
  .eyebrow::before { flex: 0 0 22px; width: 22px; }
  section { padding: 72px 0; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 84px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 28px 22px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; justify-content: center; }
  .grid-2, .grid-3, .process, .form .row { grid-template-columns: 1fr; }
  .phase { grid-template-columns: 1fr; gap: 18px; }
  .phase-label { position: static; }
  .hero-strip { grid-template-columns: 1fr 1fr; }
  .hero-strip div:nth-child(2) { border-right: 0; }
  .hero-strip div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.14); }
  .hero .wrap { padding-top: 72px; padding-bottom: 80px; }
  .hero-art { display: none; }
  .page-hero::after { width: 36px; right: 4%; }
  .site-footer .top { grid-template-columns: 1fr; gap: 34px; }
  .deliver td:first-child { width: 40%; }
}
@media (max-width: 520px) {
  .systems, .hero-strip { grid-template-columns: 1fr; }
  .hero-strip div { border-right: 0 !important; border-bottom: 1px solid rgba(255,255,255,.14); padding-left: 0; padding-right: 0; }
  .brand img { height: 38px; }
  .person { grid-template-columns: 1fr; text-align: left; }
}
