/* Summary: homepage prototype in the "Planbord" style. Borrows from a transport planning board:
   project steps are magnetic strips on a column grid, and strip colour in the portal preview marks
   the owner. Three services carry equal weight, so they sit side by side.
   Keywords: prototype, homepage, planning board, strips, services, Barlow */
:root {
    --board: #edf1f3;
    --paper: #ffffff;
    --ink: #14202b;
    --ink-soft: #4c5b68;
    --line: #cbd5dc;
    --cobalt: #1746c7;
    --yellow: #ffc800;
    --teal: #0b7a6e;
    --display: "Barlow Condensed", "Arial Narrow", sans-serif;
    --body: "Barlow", "Segoe UI", sans-serif;
    --gutter: clamp(1rem, 4vw, 3.5rem);
}

* { box-sizing: border-box; }
/* Room for the sticky compact menu, so a section heading does not land under it. */
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { margin: 0; background: var(--board); color: var(--ink); font: 400 1.125rem/1.55 var(--body); }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 5; padding: .5rem 1rem; background: var(--paper); }

/* The menu stays at the top while scrolling; site.js adds is-compact once the page has moved, which makes it a small bar. */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 2rem; padding: 1.25rem var(--gutter); background: var(--board); transition: padding .2s ease, box-shadow .2s ease; }
.brand { font: 700 2rem/1 var(--display); text-decoration: none; transition: font-size .2s ease; }
.top nav { display: flex; gap: 1.5rem; margin-left: auto; }
.top nav a { font-weight: 500; text-decoration: none; }
.top nav a:hover, .login:hover { color: var(--cobalt); }
.top.is-compact { padding-block: .55rem; box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(20, 32, 43, .08); }
.top.is-compact .brand { font-size: 1.5rem; }
.top.is-compact nav a, .top.is-compact .login { font-size: 1rem; }
/* The section in view, set by site.js. */
.top nav a[aria-current="true"] { color: var(--cobalt); box-shadow: inset 0 -2px 0 var(--cobalt); }
.login { font-weight: 600; text-decoration: none; padding-left: 1.5rem; border-left: 1px solid var(--line); }

/* Hero: the strips are the memorable element, everything else stays quiet. */
.hero { padding: clamp(2rem, 6vw, 5rem) var(--gutter) 0; }
.hero-text { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 2rem 4rem; align-items: end; }
h1 { font: 600 clamp(3.25rem, 8.2vw, 7.5rem)/.94 var(--display); letter-spacing: -.01em; }
.hero-side p { max-width: 34ch; margin-bottom: 1.5rem; }
.button { display: inline-block; padding: .8rem 1.4rem; background: var(--cobalt); color: #fff; font-weight: 600; text-decoration: none; border-radius: 3px; }
.button:hover { background: var(--ink); }

.board {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 3.1rem;
    row-gap: .45rem;
    margin-top: clamp(2.5rem, 5vw, 4.5rem);
    padding: 1rem 0;
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    background-image: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px calc(100% / 12));
}
.strip { animation: slide .6s cubic-bezier(.2, .7, .2, 1) both; }
.strip a {
    display: flex; align-items: center; height: 100%; padding: 0 1rem;
    background: var(--cobalt); color: #fff; border-left: 7px solid var(--ink); border-radius: 3px;
    font: 600 1.5rem/1 var(--display); text-decoration: none;
}
.strip a:hover { background: var(--ink); }
.s1 { grid-column: 1 / 4; animation-delay: .05s; }
.s2 { grid-column: 3 / 6; animation-delay: .15s; }
.s3 { grid-column: 5 / 7; animation-delay: .25s; }
.s4 { grid-column: 6 / 9; animation-delay: .35s; }
.s5 { grid-column: 8 / 12; animation-delay: .45s; }
.s6 { grid-column: 11 / 13; animation-delay: .55s; }
.s6 a { background: var(--yellow); color: var(--ink); }
.s6 a:hover { background: var(--ink); color: #fff; }
@keyframes slide { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter) 0; }
h2 { font: 600 clamp(2.25rem, 4.5vw, 3.75rem)/1 var(--display); margin-bottom: 2rem; }
h3 { font: 600 1.625rem/1.1 var(--display); margin-bottom: .4rem; }

.problems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 4rem; }
.problems li { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.problems p { color: var(--ink-soft); max-width: 46ch; }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 3rem); }
.services article { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.services h3 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); margin-bottom: .75rem; }
.services p { max-width: 40ch; margin-bottom: 1rem; }
.services ul { color: var(--ink-soft); }

.service-extra { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 3rem; margin-top: 2.5rem; padding: 1.5rem; background: var(--paper); border-left: 7px solid var(--cobalt); border-radius: 3px; }
.service-extra > div { flex: 1 1 24rem; }
.service-extra h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.service-extra p { max-width: 60ch; }

.steps { counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 4fr 8fr; gap: 1rem; align-items: baseline; padding: .95rem 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); font: 600 1.625rem/1 var(--display); color: var(--cobalt); }
.steps h3 { margin: 0; }
.steps p { color: var(--ink-soft); }

.portal { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 2.5rem 4rem; align-items: start; }
.portal-intro p { max-width: 40ch; }
.demo { background: var(--paper); border: 2px solid var(--ink); border-radius: 4px; padding: clamp(1rem, 2.5vw, 1.75rem); }
.demo-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.demo-label { color: var(--ink-soft); font-size: .95rem; }
.demo-status { padding: .15rem .7rem; background: #d9f0ea; color: #075c52; font-weight: 600; font-size: .95rem; border-radius: 3px; white-space: nowrap; }
.demo-time { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1.9rem; row-gap: .3rem; margin: 1.25rem 0; padding-bottom: .6rem; border-bottom: 1px solid var(--line); background-image: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 25%); }
.m { padding-left: .5rem; color: var(--ink-soft); font-size: .95rem; }
.bar { display: flex; align-items: center; padding: 0 .6rem; background: var(--ink); color: #fff; border-radius: 3px; font: 500 1.05rem/1 var(--display); white-space: nowrap; overflow: hidden; }
.b1 { grid-column: 1 / 2; grid-row: 2; }
.b2 { grid-column: 2 / 4; grid-row: 3; }
.b3 { grid-column: 4 / 5; grid-row: 4; background: var(--yellow); color: var(--ink); }
.demo-filter, .demo-buttons { display: flex; flex-wrap: wrap; gap: .4rem; }
.demo button { padding: .4rem .85rem; background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: 3px; font: 500 1rem var(--body); cursor: pointer; min-height: 2.5rem; }
.demo button:hover, .demo button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.demo-actions { margin: .75rem 0 1rem; }
.demo-actions li { display: grid; grid-template-columns: 1fr auto 4rem; gap: .75rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.demo-actions li[hidden] { display: none; }
.demo-actions time { color: var(--ink-soft); text-align: right; font-size: 1rem; }
.owner { padding: .05rem .55rem; border-radius: 3px; font-weight: 600; font-size: .9rem; }
.o-jij { background: var(--yellow); color: var(--ink); }
.o-jori { background: var(--cobalt); color: #fff; }
.o-lev { background: var(--teal); color: #fff; }
.demo-note { min-height: 1.5rem; margin-top: .6rem; color: var(--ink-soft); font-size: 1rem; }

.about { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.about h2 { margin-bottom: 1rem; }
.about p { max-width: 58ch; }
.about p + p { margin-top: .75rem; }
.portrait { display: grid; place-items: center; width: clamp(8rem, 16vw, 13rem); aspect-ratio: 4 / 5; background: var(--ink); color: #fff; font: 600 3.5rem/1 var(--display); border-radius: 3px; }

.contact { margin-top: clamp(3.5rem, 8vw, 6.5rem); padding: clamp(3rem, 7vw, 5.5rem) var(--gutter); background: var(--cobalt); color: #fff; }
.contact h2 { font-size: clamp(2.75rem, 6vw, 5rem); margin-bottom: 2.5rem; max-width: 18ch; }
.contact form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; max-width: 70rem; }
.contact label { display: block; font-weight: 500; }
.contact .wide { grid-column: 1 / -1; }
.contact input, .contact textarea { display: block; width: 100%; margin-top: .3rem; padding: .7rem .8rem; background: #fff; color: var(--ink); border: 0; border-radius: 3px; font: inherit; }
.contact :focus-visible { outline-color: var(--yellow); }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.contact button { padding: .8rem 1.4rem; background: var(--yellow); color: var(--ink); border: 0; border-radius: 3px; font: 600 1.125rem var(--body); cursor: pointer; }
.contact button:hover { background: #fff; }

.foot { padding: 1.25rem var(--gutter); background: var(--ink); color: #fff; font-size: 1rem; }

@media (max-width: 860px) {
    /* On a phone the menu is a second row that scrolls sideways, so it can come along in the small bar too. */
    .top { flex-wrap: wrap; row-gap: .4rem; }
    .top nav { order: 3; flex-basis: 100%; margin-left: 0; gap: 1.25rem; overflow-x: auto; scrollbar-width: none; font-size: 1rem; }
    .top nav::-webkit-scrollbar { display: none; }
    .top nav a { white-space: nowrap; }
    html { scroll-padding-top: 6rem; }
    .login { margin-left: auto; padding-left: 0; border-left: 0; }
    .hero-text, .portal { grid-template-columns: minmax(0, 1fr); }
    .services { grid-template-columns: minmax(0, 1fr); }
    .problems { grid-template-columns: minmax(0, 1fr); }
    .steps li { grid-template-columns: 2rem minmax(0, 1fr); row-gap: .1rem; }
    .steps p { grid-column: 2; }
    .contact form { grid-template-columns: minmax(0, 1fr); }
    /* Twelve columns are too narrow for the strip labels, so the stairs become a fixed offset per step. */
    .board { display: block; background-image: none; }
    .strip { height: 2.75rem; width: 62%; margin-bottom: .4rem; }
    .s2 { margin-left: 7.6%; } .s3 { margin-left: 15.2%; } .s4 { margin-left: 22.8%; } .s5 { margin-left: 30.4%; } .s6 { margin-left: 38%; margin-bottom: 0; }
}
@media (max-width: 480px) {
    .about { grid-template-columns: minmax(0, 1fr); }
    .demo-actions li { grid-template-columns: 1fr auto; }
    .demo-actions time { grid-column: 1; grid-row: 2; text-align: left; }
    .owner { justify-self: end; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .strip { animation: none; }
    .top, .brand { transition: none; }
}

/* Parts added for the live site: real form feedback, cases, reviews and text pages. */
.top nav a, .foot a { color: inherit; }
.foot { display: flex; justify-content: space-between; gap: 1rem; }
.demo-date { color: var(--ink-soft); text-align: right; font-size: 1rem; }
.hp { position: absolute; left: -9999px; }
.field-error { display: block; margin-top: .2rem; color: #fff; font-weight: 600; }
.field-error.validation-summary-valid { display: none; }
.field-error ul { margin: 0; padding: 0; list-style: none; }
.form-sent { max-width: 60ch; margin-bottom: 1.5rem; padding: .6rem .9rem; background: var(--yellow); color: var(--ink); border-radius: 3px; font-weight: 600; }
.cases, .reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem; }
.case, .review { margin: 0; padding: 1.25rem; background: var(--paper); border-top: 2px solid var(--ink); }
.case img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: .75rem; }
.case h4 { margin: .75rem 0 .1rem; font: 600 1.125rem/1.2 var(--display); }
.case-sector { color: var(--ink-soft); }
.review-average { margin-bottom: 1rem; }
.review-stars { color: var(--cobalt); letter-spacing: .1em; }
.review blockquote { margin: .5rem 0; }
.text-page { max-width: 44rem; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) var(--gutter); }
.text-page h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 1rem; }
.text-page h2 { margin: 1.5rem 0 .3rem; font-size: 1.75rem; }
.about p + p { margin-top: .75rem; }
.foot-links a { margin-left: 1rem; }

/* Service pages: title links on the homepage and the breadcrumb on the page itself. */
.services h3 a, .service-extra h3 a { color: inherit; text-decoration: none; border-bottom: 3px solid var(--yellow); }
.services h3 a:hover, .service-extra h3 a:hover { color: var(--cobalt); }
.breadcrumb { margin-bottom: 1rem; color: var(--ink-soft); }
.breadcrumb a { color: var(--cobalt); }
.service-page .terms-body { margin-bottom: 2rem; }
.service-page .terms-body p, .service-page .terms-body ul, .service-page .terms-body ol { margin-bottom: 1rem; }
.service-page .terms-body ul { list-style: disc; padding-left: 1.25rem; }
.service-page .terms-body ol { list-style: decimal; padding-left: 1.25rem; }
.service-page .terms-body li { margin-bottom: .35rem; }
.service-page .terms-body a { color: var(--cobalt); }
