/* Aviva Building Management Inc. — site styles
   Brand: B-MAL blue + orange (from the B-MAL wordmark).
   Restrained on purpose: this site is read by prospective clients and by
   funding reviewers. No gradients-as-decoration, no glow, no stock drama. */

:root {
  --ink:        #13202e;
  --ink-2:      #40505f;
  --ink-3:      #5f7080;
  --brand:      #1f6fb2;
  --brand-dark: #185a91;
  --brand-tint: #eef5fb;
  --accent:     #c2661a;
  --accent-tint:#fdf3e9;
  --surface:    #ffffff;
  --surface-2:  #f5f7f9;
  --surface-3:  #edf1f5;
  --line:       #dde4ea;
  --line-2:     #c8d3dd;
  --ok:         #1a6b4a;

  --wrap: 1120px;
  --gutter: 16px;
  --radius: 10px;
  --radius-sm: 6px;

  --shadow-sm: 0 1px 2px rgba(19,32,46,.06), 0 1px 3px rgba(19,32,46,.05);
  --shadow-md: 0 2px 4px rgba(19,32,46,.05), 0 8px 24px rgba(19,32,46,.07);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.22; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.011em; }
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.1rem); letter-spacing: -.021em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.05rem); letter-spacing: -.016em; }
h3 { font-size: 1.16rem; }
h4 { font-size: 1rem; }
p  { margin: 0 0 1.1em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }

img { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 3px; }

/* ---------- layout ---------- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 760px; }

.section { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.section--tint { background: var(--surface-2); border-block: 1px solid var(--line); }
.section__lead { font-size: 1.1rem; color: var(--ink-3); max-width: 64ch; }

.stack > * + * { margin-top: 1.1em; }
.measure { max-width: 68ch; }

.grid { display: grid; gap: 20px; }
@media (min-width: 620px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); }
                             .grid--2\@lg { grid-template-columns: repeat(2, 1fr); } }

/* ---------- header ---------- */

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  transition: top .15s ease;
}
.skip:focus { top: 8px; color: #fff; }

.masthead { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 50; }
.masthead__inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.brand img { height: 30px; width: auto; display: block; }
.brand__name { font-weight: 700; color: var(--ink); font-size: .98rem; line-height: 1.2; letter-spacing: -.01em; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-block; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand-dark); background: var(--brand-tint); }

.nav__toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 8px 12px; font: inherit; font-size: .92rem;
  color: var(--ink); cursor: pointer;
}

@media (max-width: 900px) {
  .masthead__inner { flex-wrap: wrap; }
  .nav__toggle { display: block; }
  .nav {
    order: 3; width: 100%; margin-left: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding-bottom: 12px; border-top: 1px solid var(--line); padding-top: 12px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px 12px; }
  .nav .btn { text-align: center; margin-top: 6px; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block; padding: 11px 20px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .97rem; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; font-family: inherit; line-height: 1.4;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.arrow-link { font-weight: 600; text-decoration: none; display: inline-block; }
.arrow-link::after { content: " \2192"; }
.arrow-link:hover { text-decoration: underline; }

/* ---------- hero ---------- */

.hero { padding-block: clamp(2.5rem, 1.5rem + 5vw, 5rem); border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 950px) { .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.hero p.lead { font-size: 1.14rem; color: var(--ink-2); max-width: 56ch; }
.hero__note { font-size: .92rem; color: var(--ink-3); margin-top: 18px; }

.shot { border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--surface); }
.shot img { display: block; width: 100%; }
.shot__caption { font-size: .86rem; color: var(--ink-3); padding: 10px 14px; border-top: 1px solid var(--line); background: var(--surface-2); }

/* placeholder used where a real product screenshot must be dropped in */
.shot--todo {
  display: grid; place-items: center; min-height: 260px; padding: 28px;
  background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 12px, var(--surface-3) 12px, var(--surface-3) 24px);
  text-align: center; color: var(--ink-3); font-size: .92rem;
}

/* ---------- cards ---------- */

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .35em; }
.card p { font-size: .97rem; margin-bottom: 0; }
.card__icon { width: 34px; height: 34px; display: block; margin-bottom: 14px; color: var(--brand); }

.availability {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  text-transform: uppercase; color: var(--brand-dark); background: var(--brand-tint);
  border: 1px solid #cfe2f2; border-radius: 99px; padding: 4px 12px; margin-bottom: 18px;
}

/* ---------- feature blocks ---------- */

.feature { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 28px; }
.feature:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.feature h2 { font-size: 1.32rem; letter-spacing: -.01em; }
.feature__body { max-width: 72ch; }

.notice {
  border: 1px solid var(--line-2); border-left: 4px solid var(--brand);
  background: var(--brand-tint); border-radius: var(--radius-sm);
  padding: 16px 20px; font-size: .97rem; color: var(--ink-2);
}
.notice--plain { background: var(--surface-2); border-left-color: var(--line-2); }

/* ---------- steps ---------- */

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 52px; padding-bottom: 26px; }
.steps > li::before {
  content: "Step " counter(step); position: absolute; left: 0; top: 2px;
  width: 38px; font-size: .68rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: var(--brand-dark); line-height: 1.25;
}
.steps > li:last-child { padding-bottom: 0; }
.steps h3 { margin-bottom: .3em; }
.steps p { font-size: .97rem; margin-bottom: 0; }

/* ---------- Q&A ---------- */

.qa { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }
.qa:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.qa h3 { font-size: 1.04rem; margin-bottom: .3em; }
.qa p { font-size: .97rem; }

/* ---------- segment blocks ---------- */

.segment { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--surface); }
.segment h2 { font-size: 1.3rem; }
.segment dl { margin: 0; }
.segment dt {
  font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 18px;
}
.segment dd { margin: .3em 0 0; font-size: .97rem; }

/* ---------- forms ---------- */

.form { display: grid; gap: 18px; max-width: 620px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .94rem; color: var(--ink); }
.field .hint { font-size: .86rem; color: var(--ink-3); }
.field .req { color: var(--accent); font-weight: 700; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 12px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); }

/* ---------- roles ---------- */

.role { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--surface); }
.role h3 { margin-bottom: .3em; }
.role p { font-size: .97rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.tags li {
  font-size: .82rem; font-weight: 500; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 3px 11px;
}

/* ---------- legal / prose ---------- */

.prose h2 { margin-top: 2em; font-size: 1.32rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface-2); font-weight: 600; color: var(--ink); }

.updated { font-size: .9rem; color: var(--ink-3); }

.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { position: relative; padding-left: 26px; margin-bottom: .6em; font-size: .97rem; }
.list-plain li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
}

/* ---------- CTA band ---------- */

.cta { background: var(--ink); color: #ccd6df; padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); }
.cta h2 { color: #fff; }
.cta p { max-width: 58ch; margin-bottom: 1.4em; }
.cta .btn--primary { background: #fff; color: var(--ink); }
.cta .btn--primary:hover { background: #e7edf2; color: var(--ink); }
.cta .btn--ghost { background: transparent; color: #fff; border-color: #44556485; }
.cta .btn--ghost:hover { background: #ffffff14; color: #fff; }

/* ---------- footer ---------- */

.foot { background: var(--surface-2); border-top: 1px solid var(--line); padding-block: 44px; font-size: .94rem; }
.foot__cols { display: grid; gap: 28px; }
@media (min-width: 700px) { .foot__cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: .9em; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .5em; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--brand-dark); text-decoration: underline; }
.foot__legal {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: .87rem; color: var(--ink-3);
}
.foot__legal p { margin-bottom: .4em; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* ---------- building-report illustration (hero) ---------- */
/* Hand-built, labelled as an illustration in its caption. Not a screenshot, and
   must not be presented as one. Status is text, never colour alone. */

.report { background: var(--surface); font-size: .92rem; }
.report__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.report__title { font-weight: 700; color: var(--ink); }
.report__range { color: var(--ink-3); font-size: .86rem; }
.report__table { width: 100%; border-collapse: collapse; }
.report__table th, .report__table td { padding: 9px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.report__table thead th {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-3); font-weight: 700;
}
.report__table tbody th { font-weight: 500; color: var(--ink-2); }
.report__table td { text-align: right; width: 68px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.report__table thead th:not(:first-child) { text-align: right; }
.report__table tbody tr:last-child th, .report__table tbody tr:last-child td { border-bottom: 0; }
.report__foot {
  display: flex; gap: 20px; flex-wrap: wrap;
  padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-2);
  font-size: .86rem; color: var(--ink-3); font-variant-numeric: tabular-nums;
}
