/* UtahBIM site, revision 2 (2026-10-12).
   Brand: Poppins for headings, Lato for everything else (UtahBIM's own fonts).
   Colors from the logo (#084AF3, #CBDAFF) and Bowen's backdrop navy. */
:root {
  --navy: #0A1A4A;
  --navy-900: #071233;
  --navy-950: #050C26;
  --blue: #084AF3;
  --blue-600: #063BC4;
  --light: #CBDAFF;
  --tint: #EEF3FF;
  --text: #2A365E;
  --muted: #5B6789;
  --line: #E3E8F2;
  --surface: #F5F7FB;
  --white: #fff;
  --amber: #F6B73C;
  --head: 'Poppins', system-ui, sans-serif;
  --body: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1140px;
  --gutter: 24px;
}
@media (max-width: 640px) { :root { --gutter: 16px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 17.5px/1.65 var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); margin: 0; letter-spacing: -.01em; }
h1 { font-weight: 600; font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.08; }
h2 { font-weight: 600; font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.18; }
h3 { font-weight: 600; font-size: 1.2rem; line-height: 1.3; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.2rem); color: var(--text); max-width: 42em; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: block; flex: none; width: 124px; }
.brand svg { width: 100%; height: auto; display: block; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { color: var(--navy); text-decoration: none; font: 600 .95rem/1 var(--head); padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--blue); }
.nav .btn { margin-left: 4px; padding: 12px 18px; border-bottom: 0; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--navy); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 6px var(--gutter) 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .nav .btn { margin: 16px 0 0; justify-content: center; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 .95rem/1 var(--head); text-decoration: none; padding: 15px 22px; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-600); }
.btn-outline { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { background: var(--light); }
.btn-line { color: var(--white); border-color: rgba(255,255,255,.75); }
.btn-line:hover { background: rgba(255,255,255,.1); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.textlink { font: 600 1rem/1.4 var(--head); text-decoration: none; }
.textlink:hover { text-decoration: underline; }

/* sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.tight { padding: clamp(40px, 5vw, 64px) 0; }
.section.alt { background: var(--surface); }
.section.dark { background: var(--navy-900); color: #C9D5F7; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.head p { margin-top: 14px; }

/* home hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 92px); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero .lead { margin: 22px 0 30px; }
.hero-note { margin-top: 26px; color: var(--muted); font-size: .95rem; }
.framed { margin: 0; }
.framed .frame { position: relative; }
.framed .frame::before { content: ""; position: absolute; left: -14px; top: -14px; right: 14px; bottom: 14px; background: var(--light); z-index: 0; }
.framed img { position: relative; z-index: 1; width: 100%; border: 1px solid var(--line); background: var(--white); }
.framed figcaption { margin-top: 12px; font-size: .88rem; color: var(--muted); }

/* page hero (inner pages) */
.page-hero { padding: clamp(40px, 6vw, 76px) 0 clamp(32px, 5vw, 56px); background: var(--surface); border-bottom: 1px solid var(--line); }
.page-hero .lead { margin-top: 18px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* grids */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .two, .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.two > *, .split > * { min-width: 0; }

/* buyer cards */
.buyer { padding: clamp(26px, 3.5vw, 40px); background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--blue); display: flex; flex-direction: column; }
.buyer .who { font: 700 .95rem/1.2 var(--body); color: var(--blue); margin-bottom: 12px; }
.buyer h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); margin-bottom: 14px; }
.buyer .textlink { margin-top: auto; padding-top: 8px; }

/* lists */
.list { list-style: none; padding: 0; margin: 18px 0 0; }
.list li { position: relative; padding: 0 0 12px 24px; }
.list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; background: var(--blue); box-shadow: 3px 3px 0 var(--light); }

/* facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 820px) { .facts { grid-template-columns: 1fr; } }
.fact { background: var(--white); padding: 26px; }
.fact b { display: block; font: 600 1.6rem/1.15 var(--head); color: var(--navy); margin-bottom: 6px; }
.fact span { color: var(--muted); font-size: .97rem; }

/* project cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 28px); }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: var(--white); border: 1px solid var(--line); }
.card:hover h3 { color: var(--blue); }
.card .pic { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 18px 20px 22px; }
.card h3 { font-size: 1.08rem; margin-bottom: 6px; transition: color .15s; }
.card .meta { font-size: .9rem; color: var(--muted); }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .notes { grid-template-columns: 1fr; } }
.note { border: 1px solid var(--line); padding: 22px; background: var(--white); }
.note h3 { font-size: 1.05rem; margin-bottom: 8px; }
.note p { margin: 0; font-size: .97rem; }

/* testimonial */
.quote-band { position: relative; overflow: hidden; background: var(--navy-900); color: #C9D5F7; isolation: isolate; }
.quote-band::before { content: ""; position: absolute; inset: 0 0 0 45%; background: url('/assets/backdrop.jpg') center / cover no-repeat; opacity: .35; z-index: -1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.quote-band figure { margin: 0; max-width: 820px; }
.quote-band blockquote { margin: 0; font: 500 clamp(1.35rem, 2.8vw, 2.05rem)/1.35 var(--head); color: var(--white); }
.quote-band figcaption { margin-top: 18px; font-weight: 700; color: var(--light); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 3vw, 32px); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; }
.steps { counter-reset: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; background: var(--blue); color: var(--white); font: 600 1.05rem/1 var(--head); box-shadow: 5px 5px 0 var(--light); margin-bottom: 18px; }
.steps h3 { font-size: 1.08rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .97rem; margin: 0; }

/* trade rows (coordination page) */
.trade { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 52px); align-items: center; padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.trade:first-of-type { border-top: 0; }
.trade.noimg { grid-template-columns: 1fr; max-width: 760px; }
.trade:nth-of-type(even) .pic { order: -1; }
@media (max-width: 860px) { .trade { grid-template-columns: 1fr; } .trade:nth-of-type(even) .pic { order: 0; } }
.trade h3 { font-size: 1.4rem; margin-bottom: 10px; }
.trade .work { margin-top: 14px; padding-left: 16px; border-left: 3px solid var(--light); color: var(--text); font-size: .98rem; }
.trade .pic img { width: 100%; border: 1px solid var(--line); }
[id] { scroll-margin-top: 90px; }

.lod { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 22px; }
@media (max-width: 600px) { .lod { grid-template-columns: 1fr; } }
.lod div { background: var(--white); padding: 20px; }
.lod b { display: block; font: 600 1.15rem/1.2 var(--head); color: var(--navy); margin-bottom: 4px; }
.lod span { color: var(--muted); font-size: .95rem; }

.callout { background: var(--tint); border-left: 4px solid var(--blue); padding: 24px 26px; }
.callout b { display: block; font: 600 1.35rem/1.25 var(--head); color: var(--navy); margin-bottom: 6px; }
.callout p { margin: 0; }

/* plugins */
.plugins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .plugins { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .plugins { grid-template-columns: 1fr; } }
.plugin { border: 1px solid var(--line); padding: 20px; display: grid; grid-template-columns: 56px 1fr; gap: 6px 16px; align-content: start; background: var(--white); }
.plugin img, .plugin .noicon { width: 56px; height: 56px; grid-row: span 4; }
.plugin .noicon { background: var(--tint); display: grid; place-items: center; font: 600 .9rem/1 var(--head); color: var(--blue); }
.plugin b { font: 600 1rem/1.3 var(--head); color: var(--navy); }
.plugin .desc { font-size: .93rem; color: var(--text); }
.plugin .saves { font-size: .85rem; color: var(--muted); }
.plugin .price { font: 700 .92rem/1.3 var(--body); color: var(--navy); }
.plugin a { grid-column: 2; font: 600 .9rem/1.3 var(--head); text-decoration: none; margin-top: 4px; }

/* Portal demo (loads on click) */
.browser { background: var(--navy-950); border: 1px solid #1E2C63; box-shadow: 0 24px 60px rgba(5,12,38,.22); }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #1E2C63; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #26357A; }
.browser-bar .url { margin-left: 10px; flex: 1; background: #0C1846; color: #A9BBEA; font: 700 .76rem/1 var(--body); padding: 7px 10px; }
.embed { position: relative; height: 480px; background: var(--navy-950) url('/assets/backdrop.jpg') center / cover no-repeat; display: grid; place-items: center; }
.embed::before { content: ""; position: absolute; inset: 0; background: rgba(5,12,38,.5); }
.embed.live { background: var(--surface); }
.embed.live::before { display: none; }
.embed iframe { position: relative; display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 600px) { .embed { height: 400px; } }
.embed-start { position: relative; display: flex; align-items: center; gap: 16px; max-width: calc(100% - 32px); background: var(--white); color: var(--navy); border: 0; padding: 16px 22px 16px 16px; cursor: pointer; box-shadow: 0 12px 30px rgba(0,0,0,.35); text-align: left; font: inherit; }
.embed-start:hover { background: var(--tint); }
.embed-start .play { width: 46px; height: 46px; flex: none; background: var(--blue); display: grid; place-items: center; box-shadow: 4px 4px 0 var(--light); }
.embed-start .play::after { content: ""; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.embed-text b { display: block; font: 600 1.05rem/1.2 var(--head); }
.embed-text small { display: block; color: var(--muted); font-size: .9rem; margin-top: 3px; }
.caption { font-size: .88rem; color: var(--muted); margin-top: 10px; }

/* prose (case studies and blog posts) */
.prose { max-width: 740px; }
.prose h2 { font-size: clamp(1.35rem, 2.3vw, 1.65rem); margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.15rem; margin: 1.5em 0 .5em; }
.prose h4 { font-size: 1rem; margin: 1.3em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose figure { margin: 1.6em 0; }
.prose figure img { width: 100%; border: 1px solid var(--line); }
.prose figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.prose blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 3px solid var(--blue); font-style: italic; }
.byline { color: var(--muted); font-size: .95rem; margin-top: 14px; }
.article-cta { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.postlist { display: grid; gap: 18px; max-width: 820px; }
.post { display: block; border: 1px solid var(--line); padding: 24px 26px; text-decoration: none; color: var(--text); }
.post:hover h3 { color: var(--blue); }
.post h3 { margin-bottom: 8px; }
.post p { margin: 0; }

/* about */
.portrait { width: 100%; max-width: 360px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.side-card { border: 1px solid var(--line); padding: 26px; display: grid; gap: 18px; background: var(--white); }
.side-item { display: grid; gap: 3px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.side-item:last-child { border-bottom: 0; padding-bottom: 0; }
.side-item .k { font-weight: 700; font-size: .85rem; color: var(--muted); }
.side-item a, .side-item b { font: 600 1.05rem/1.35 var(--head); color: var(--navy); text-decoration: none; }
.side-item a:hover { color: var(--blue); }
.side-item small { color: var(--muted); font-size: .9rem; }
.downloads { display: grid; gap: 12px; max-width: 520px; }

/* call to action band */
.cta-band { background: var(--blue); color: #E6EDFF; }
.cta-band .wrap { padding-top: clamp(48px, 6vw, 76px); padding-bottom: clamp(48px, 6vw, 76px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }
.cta-band h2 { color: var(--white); }
.cta-band p { margin: 12px 0 0; font-size: 1.1rem; }
.cta-band .actions { justify-content: flex-end; }
@media (max-width: 860px) { .cta-band .actions { justify-content: flex-start; } }

/* footer */
.site-footer { background: var(--navy-950); color: #A9B6DB; padding: 60px 0 32px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer .brand { width: 132px; margin-bottom: 16px; }
.site-footer h4 { font: 600 .95rem/1 var(--head); color: var(--white); margin: 4px 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: #D2DCFA; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.foot-tag { color: #D2DCFA; font: 500 1rem/1.45 var(--head); max-width: 18em; }
.foot-legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(169,193,255,.18); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #7487BE; }
