/* S. Pabbi public site. Colours from the logo: navy #353e54, teal #36b6b5; deep teal for text on white. */
:root {
  --bg: #ffffff;
  --soft: #f5fafa;
  --ink: #353e54;
  --ink-soft: #5b6478;
  --line: #e1eaeb;
  --teal: #36b6b5;
  --teal-deep: #1f7f7e;
  --teal-mist: #e6f6f6;
  --focus: #1f7f7e;
  --display: 'League Spartan', system-ui, sans-serif;
  --sans: 'Raleway', system-ui, sans-serif;
  --gutter: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--teal-deep); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 600; line-height: 1.1; margin-bottom: 32px; }
h3 { font-size: 19px; font-weight: 600; line-height: 1.25; }
p { margin: 0; }
address { font-style: normal; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }
.muted { color: var(--ink-soft); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.demo-banner { margin: 0; padding: 7px var(--gutter); background: var(--teal-mist); color: var(--teal-deep); font-size: 13px; font-weight: 600; text-align: center; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; flex-shrink: 1; min-width: 0; }
.brand img { width: 168px; }
.nav { display: none; gap: 28px; margin-left: auto; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.top .btn-sm { margin-left: auto; }
@media (min-width: 880px) { .nav { display: flex; } .top .btn-sm { margin-left: 0; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none; border: 2px solid var(--teal-deep); cursor: pointer; }
.btn-primary { background: var(--teal-deep); color: #ffffff; }
.btn-primary:hover { background: #176463; border-color: #176463; }
.btn-ghost { background: transparent; color: var(--teal-deep); }
.btn-ghost:hover { background: var(--teal-mist); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Hero */
.hero { padding: 56px 0 72px; background: linear-gradient(180deg, var(--soft), #ffffff 85%); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 80px 0 72px; } .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; } }
h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 700; line-height: 1.06; max-width: 19ch; }
.lede { margin-top: 20px; font-size: 19px; color: var(--ink-soft); max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 32px; }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts li { display: grid; }
.facts strong { font: 600 18px/1.2 var(--display); }
.facts span { font-size: 14px; color: var(--ink-soft); }

/* Portal preview: the one bold element */
.preview { margin: 0; }
.pv-card { background: #ffffff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 24px 60px -28px rgba(53, 62, 84, .35); max-width: 460px; margin-left: auto; margin-right: auto; }
.pv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pv-title { font: 600 18px/1.2 var(--display); }
.pv-pill { font-size: 12px; font-weight: 700; color: var(--teal-deep); background: var(--teal-mist); padding: 4px 10px; border-radius: 999px; }
.pv-steps { list-style: none; padding: 0; margin: 18px 0 6px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pv-steps li { font-size: 11px; font-weight: 600; color: var(--ink-soft); padding-top: 12px; position: relative; text-align: center; }
.pv-steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 3px; background: var(--line); }
.pv-steps li.done::before { background: var(--teal); }
.pv-steps li.now::before { background: linear-gradient(90deg, var(--teal) 50%, var(--line) 50%); }
.pv-steps li.now { color: var(--ink); }
.pv-list { list-style: none; padding: 0; margin: 12px 0 0; }
.pv-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.pv-list em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--ink-soft); }
.dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dot.ok { background: var(--teal); }
.dot.need { border: 2.5px solid var(--ink); }
.pv-chat { margin-top: 14px; display: grid; gap: 8px; }
.pv-chat p { font-size: 14px; line-height: 1.45; padding: 10px 12px; border-radius: 12px; max-width: 88%; }
.pv-chat .me { justify-self: end; background: var(--teal-deep); color: #ffffff; border-bottom-right-radius: 4px; }
.pv-chat .priya { background: var(--soft); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.pv-chat .priya span { display: block; font-size: 11px; font-weight: 700; color: var(--teal-deep); margin-bottom: 2px; }
.preview figcaption { text-align: center; margin-top: 14px; font-size: 13px; color: var(--ink-soft); }

/* Bands */
.band { padding: 72px 0; }
.band-alt { background: var(--soft); }
@media (min-width: 960px) { .band { padding: 96px 0; } }

/* Services */
.svc-grid { display: grid; gap: 0 40px; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc { padding: 22px 0; border-top: 1px solid var(--line); }
.svc h3 { position: relative; padding-left: 16px; }
.svc h3::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 2px; background: var(--teal); }
.svc p { margin-top: 8px; color: var(--ink-soft); font-size: 16px; max-width: 34ch; }
.who { margin-top: 28px; color: var(--ink-soft); max-width: 70ch; }
.who strong { color: var(--ink); }

/* Portal benefits */
.three { display: grid; gap: 28px; }
@media (min-width: 760px) { .three { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.three p { margin-top: 8px; color: var(--ink-soft); }
.link-arrow { display: inline-block; margin-top: 32px; font-weight: 600; }

/* Process track */
.track { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: step; }
.track li { position: relative; padding-left: 56px; counter-increment: step; }
.track li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--teal); color: var(--teal-deep); font: 700 16px/1 var(--display); background: #ffffff; }
.track li.last::before { content: ""; border-color: var(--teal-deep); background: var(--teal-deep); }
.track strong { display: block; font: 600 18px/1.3 var(--display); padding-top: 6px; }
.track span { display: block; color: var(--ink-soft); font-size: 15px; margin-top: 2px; max-width: 30ch; }
.track .stamp { display: inline-block; color: #ffffff; background: var(--teal-deep); padding: 3px 10px; border-radius: 6px; transform: rotate(-3deg); }
@media (min-width: 880px) {
  .track { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .track li { padding: 56px 0 0; }
  .track li::after { content: ""; position: absolute; top: 19px; left: 46px; right: -12px; height: 2px; background: var(--line); }
  .track li.last::after { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .track.is-in .stamp { animation: stamp .45s cubic-bezier(.2, 1.4, .4, 1) .25s both; }
}
@keyframes stamp { from { transform: rotate(-12deg) scale(1.4); opacity: 0; } to { transform: rotate(-3deg) scale(1); opacity: 1; } }

/* About */
.about { display: grid; gap: 32px; }
@media (min-width: 860px) { .about { grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; } }
.about h2 { margin-bottom: 18px; }
.about-lead { font-size: 21px; line-height: 1.45; max-width: 36ch; }
.about-copy .muted { margin-top: 12px; max-width: 52ch; }
.placeholder { border: 2px dashed var(--line); border-radius: 12px; padding: 20px; color: var(--ink-soft); background: #ffffff; }
.ph-mark { display: inline-block; font-size: 12px; font-weight: 700; background: var(--teal-mist); color: var(--teal-deep); padding: 3px 8px; border-radius: 4px; margin-bottom: 8px; }

/* Contact */
.contact { display: grid; gap: 40px; }
@media (min-width: 860px) { .contact { grid-template-columns: 1.5fr 1fr; gap: 72px; } }
.contact h2 { margin-bottom: 10px; }
.form { display: grid; gap: 18px; margin-top: 28px; max-width: 560px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { font-weight: 600; font-size: 15px; }
.opt { font-weight: 400; color: var(--ink-soft); }
input, select, textarea { font: 400 16px/1.4 var(--sans); color: var(--ink); background: #ffffff; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--teal-deep); outline: 3px solid var(--teal-mist); outline-offset: 0; }
[aria-invalid="true"] { border-color: #c0392b; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal-deep); flex-shrink: 0; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.6em; font-weight: 600; }
.status.ok { color: var(--teal-deep); }
.status.err { color: #c0392b; }
.office { align-self: start; padding: 24px; border-radius: 12px; background: var(--soft); }
.office h3 { margin-bottom: 10px; }
.office p + p { margin-top: 12px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--ink-soft); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

.office .office-2 { margin-top: 22px; }
.office .office-contact { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

/* Service icons */
.svc-ic { width: 26px; height: 26px; fill: none; stroke: var(--teal-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.svc h3 { padding-left: 0; }
.svc h3::before { display: none; }

/* Portal tiles with mini screens */
.tile { background: #ffffff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.tile h3 { margin-top: 16px; }
.mini { display: grid; gap: 8px; padding: 14px; border-radius: 10px; background: var(--soft); min-height: 104px; align-content: center; font-size: 13px; }
.mini-label { font-weight: 600; }
.mini-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: var(--teal); }
.mini-pill { justify-self: start; font-size: 11px; font-weight: 700; color: var(--teal-deep); background: var(--teal-mist); padding: 3px 9px; border-radius: 999px; }
.mini-row { display: flex; align-items: center; gap: 8px; background: #ffffff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; }
.mini-row b { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); }
.mini-row b.ok { border: 0; background: var(--teal); }
.mini-row em { margin-left: auto; font-style: normal; color: var(--teal-deep); font-weight: 600; font-size: 12px; }
.mini-chat .q { justify-self: end; background: var(--teal-deep); color: #ffffff; padding: 7px 10px; border-radius: 10px 10px 3px 10px; }
.mini-chat .a { justify-self: start; background: #ffffff; border: 1px solid var(--line); padding: 7px 10px; border-radius: 10px 10px 10px 3px; }

/* About, team and reviews */
.about { grid-template-columns: 1fr; }
@media (min-width: 860px) { .about { grid-template-columns: 340px 1fr; gap: 56px; align-items: center; } }
.portrait { width: 100%; max-width: 340px; height: auto; border-radius: 16px; object-fit: cover; box-shadow: 0 24px 50px -30px rgba(53, 62, 84, .45); }
.quote { margin: 24px 0 0; padding-left: 18px; border-left: 3px solid var(--teal); font-size: 17px; line-height: 1.55; color: var(--ink); max-width: 56ch; }
.quote cite { display: block; margin-top: 8px; font-style: normal; font-size: 14px; color: var(--ink-soft); }
.team { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px 28px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.team li { display: grid; border-top: 1px solid var(--line); padding-top: 10px; }
.team strong { font: 600 16px/1.3 var(--display); }
.team span { font-size: 14px; color: var(--ink-soft); }
.reviews { display: grid; gap: 20px; }
@media (min-width: 860px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #ffffff; display: grid; gap: 14px; align-content: space-between; }
.review blockquote { margin: 0; font-size: 16px; line-height: 1.55; }
.review figcaption { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.small-note { margin-top: 16px; font-size: 13px; color: var(--ink-soft); }

/* Photos from spabbi.ca */
.band-img { display: block; width: 100%; height: clamp(200px, 32vw, 380px); object-fit: cover; border-radius: 16px; margin: 0 0 36px; }
.office-img { display: block; width: calc(100% + 48px); max-width: none; height: 170px; object-fit: cover; margin: -24px -24px 20px; border-radius: 12px 12px 0 0; }
.office { overflow: hidden; }
