/* LogiQ / Provisio site.
   Look: WorkHub design reference 11 "Catalog" (the same family as the Provisio
   app): deep teal owns the big surfaces, cool off-white canvas, amber for
   figures and the main action, coral only as a small accent. LogiQ red is used
   for the company mark alone. */

@font-face {
  font-family: "Source Serif 4";
  src: url("assets/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("assets/fonts/source-serif-4-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("assets/fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --deep: #072b2b;
  --teal: #006766;
  --teal-soft: #0d4a49;
  --canvas: #f3f8fb;
  --surface: #ffffff;
  --mist: #e3eef0;
  --line: #cfdfe2;
  --ink: #10292a;
  --ink-soft: #46605f;
  --amber: #fcba00;
  --amber-deep: #8a6400;
  --coral: #fc7e5a;
  --logiq-red: #ff4338;
  --on-deep: #f3f8fb;
  --on-deep-soft: #a9c6c5;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Public Sans", Arial, sans-serif;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote, table { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: var(--teal); }
h1, h2 { font-family: var(--serif); font-weight: 650; letter-spacing: -0.012em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.14; }
h3 { font: 650 1.125rem/1.3 var(--sans); }
strong { font-weight: 650; }
mark { background: #ffe9a6; color: #3c2c00; padding: 0 .25em; border-radius: 3px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, 74rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--deep); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; top: .5rem; }

/* ------------------------------------------------------------ top + hero */
.top { background: var(--deep); color: var(--on-deep); overflow: hidden; position: relative; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; position: relative; z-index: 2; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--on-deep); text-decoration: none; }
.brand-mark { width: 2.9rem; height: auto; }
.brand-name { font: 700 1.2rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { color: var(--on-deep-soft); text-decoration: none; font-size: .975rem; font-weight: 500; }
.nav a:hover { color: #fff; }
.nav .nav-cta { color: var(--deep); background: var(--amber); padding: .55rem 1.1rem; border-radius: 999px; font-weight: 650; }
.nav .nav-cta:hover { color: var(--deep); background: #ffc933; }
.nav-toggle { display: none; background: none; border: 1px solid #37605f; color: var(--on-deep); font: 600 .95rem var(--sans); padding: .5rem .9rem; border-radius: 999px; }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4.5rem); position: relative; z-index: 1; }
.hero-text { padding-block: clamp(1rem, 3vw, 2.5rem); }
.eyebrow { font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .85rem; color: var(--amber); margin-bottom: 1.25rem; }
.eyebrow span { color: var(--on-deep-soft); font-weight: 500; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.55; color: #d3e3e3; margin-top: 1.5rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; }
.btn { display: inline-block; background: var(--amber); color: var(--deep); font: 650 1.0625rem var(--sans); padding: .9rem 1.6rem; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer; }
.btn:hover { background: #ffc933; }
.btn-dark { background: var(--deep); color: #fff; }
.btn-dark:hover { background: var(--teal); }
.link-light { color: #fff; font-weight: 550; text-underline-offset: .25em; }

/* hero carousel: real screens, swiped or stepped through */
.carousel { min-width: 0; background: var(--teal); border-radius: 1.75rem; padding: clamp(1rem, 2.2vw, 1.75rem); }
.car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); background: #fff; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); }
.car-track::-webkit-scrollbar { display: none; }
.car-slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; aspect-ratio: 5 / 4; background: var(--canvas); display: grid; place-items: center; }
.car-slide img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.car-slide.car-wide img { object-fit: contain; object-position: center; }
.car-slide figcaption { position: absolute; left: .75rem; bottom: .75rem; background: var(--deep); color: #fff; font-size: .85rem; font-weight: 550; padding: .4rem .85rem; border-radius: 999px; max-width: calc(100% - 1.5rem); }
.car-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.car-btn { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; background: var(--deep); color: #fff; display: grid; place-items: center; cursor: pointer; }
.car-btn:hover { background: #000; }
.car-btn svg { width: 1.2rem; height: 1.2rem; }
.car-dots { display: flex; gap: .5rem; }
.car-dots i { width: .55rem; height: .55rem; border-radius: 50%; background: rgba(255, 255, 255, .4); transition: background .2s, width .2s; }
.car-dots i.on { background: var(--amber); width: 1.5rem; border-radius: 999px; }
.car-note { text-align: center; color: #bfe0de; font-size: .8rem; margin-top: .6rem; }

/* --------------------------------------------------------------- sections */
main > section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p { color: var(--ink-soft); font-size: 1.125rem; margin-top: .9rem; }
.section-head.on-dark p { color: var(--on-deep-soft); }
.kicker { font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: .9rem; }

/* five parts: a ruled ledger row, not five matching cards */
.parts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 3px solid var(--deep); }
.parts li { padding: 1.4rem 1.25rem 1.6rem 0; border-right: 1px solid var(--line); margin-right: 1.25rem; }
.parts li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.parts .num { font: 600 .85rem var(--sans); color: var(--ink-soft); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.parts h3 { font: 650 1.45rem/1.2 var(--serif); margin: .5rem 0 .6rem; }
.parts p { font-size: .975rem; color: var(--ink-soft); line-height: 1.55; }
.parts .part-alt h3 { color: var(--amber-deep); }
.note { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .975rem; }

/* feature rows */
.show { padding-top: 0 !important; display: grid; gap: clamp(3.5rem, 8vw, 6.5rem); }
.feature { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.75rem, 5vw, 4.5rem); align-items: center; }
.feature.flip .feature-text { order: 2; }
.feature.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.feature-text p + p, .feature-text blockquote + p, .feature-text ul + p { margin-top: 1rem; }
.feature-text h2 { margin-bottom: 1.1rem; }
.feature-text p { color: var(--ink-soft); }
.feature-text strong { color: var(--ink); }
blockquote { margin: 1.1rem 0; padding: 1rem 1.2rem; background: var(--surface); border-left: 4px solid var(--amber); border-radius: 0 10px 10px 0; font: italic 500 1.125rem/1.5 var(--serif); color: var(--ink); }
.ticks { margin: 1rem 0; display: grid; gap: .45rem; }
.ticks li { padding-left: 1.6rem; position: relative; color: var(--ink); font-weight: 550; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: .7rem; height: .7rem; border: 2px solid var(--coral); border-radius: 50%; }
.frame { background: var(--mist); padding: clamp(.6rem, 1.4vw, 1.1rem); border-radius: calc(var(--radius) + 6px); }
.frame img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 18px 40px -22px rgba(7, 43, 43, .45); width: 100%; }

/* one trade */
.trade { background: var(--deep); color: var(--on-deep); }
.trade-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.steps { counter-reset: step; display: grid; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.6rem 3.4rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; font: 650 .95rem var(--sans); }
.steps li::after { content: ""; position: absolute; left: 1.07rem; top: 2.4rem; bottom: .2rem; width: 2px; background: #1c4a49; }
.steps li:last-child::after { display: none; }
.steps .role { font-size: .78rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.steps h3 { font: 650 1.3rem/1.25 var(--serif); margin: .15rem 0 .3rem; }
.steps p { color: var(--on-deep-soft); font-size: .975rem; }
.ledger { background: var(--teal); border-radius: var(--radius); padding: clamp(1.25rem, 2.5vw, 2rem); position: sticky; top: 1.5rem; }
.ledger-title { font: 650 1.4rem var(--serif); }
.ledger-sub { color: #bfe0de; font-size: .925rem; margin-bottom: 1rem; }
.ledger table { width: 100%; border-collapse: collapse; font-size: .85rem; font-variant-numeric: tabular-nums; }
.ledger th { text-align: left; font-weight: 600; color: #bfe0de; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: .5rem .3rem; border-bottom: 1px solid #3f8c8a; }
.ledger td { padding: .65rem .3rem; border-bottom: 1px solid #1f7a78; white-space: nowrap; }
.ledger .r { text-align: right; }
.ledger tbody td:last-child, .ledger tfoot td:last-child { color: var(--amber); font-weight: 650; }
.ledger tfoot td { border-bottom: 0; font-weight: 650; padding-top: .9rem; }
.ledger-note { margin-top: 1.1rem; font-size: .85rem; color: #bfe0de; }

/* starting out */
.facts { display: grid; gap: 1.1rem; }
.facts dt { font-weight: 650; color: var(--teal); }
.facts dd { color: var(--ink-soft); font-size: 1rem; }

/* controls */
.controls { background: var(--mist); }
.controls-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.ctl { width: 100%; border-collapse: collapse; border-top: 3px solid var(--deep); }
.ctl th, .ctl td { text-align: left; vertical-align: top; padding: 1rem .25rem; border-bottom: 1px solid var(--line); }
.ctl th { width: 9.5rem; font: 650 1.15rem var(--serif); padding-right: 1.25rem; }
.ctl td { color: var(--ink-soft); }
.apart { background: var(--deep); color: var(--on-deep); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); }
.apart h3 { font: 650 1.5rem/1.2 var(--serif); margin-bottom: .9rem; }
.apart p { color: var(--on-deep-soft); }
.apart p + p { margin-top: .9rem; }
.apart strong { color: #fff; }

/* company */
.company { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.company-mark { background: #333e48; color: #fff; border-radius: calc(var(--radius) + 6px); aspect-ratio: 4 / 3; display: grid; place-items: center; }
.company-mark svg { width: 46%; }
.company-text h2 { margin-bottom: 1.1rem; }
.company-text p { color: var(--ink-soft); max-width: 40rem; }
.company-text p + p { margin-top: 1rem; }

/* contact */
.contact { background: var(--amber); color: var(--deep); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-text p { margin-top: 1rem; font-size: 1.125rem; max-width: 26rem; }
.contact-text a { color: var(--deep); font-weight: 650; }
.contact mark { background: #fff; }
.form { background: var(--surface); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.25rem); display: grid; gap: 1.1rem; box-shadow: 0 22px 44px -26px rgba(7, 43, 43, .6); }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea { font: inherit; color: var(--ink); background: var(--canvas); border: 1.5px solid var(--line); border-radius: 9px; padding: .7rem .85rem; width: 100%; }
.field input:focus, .field textarea:focus { border-color: var(--teal); outline: 3px solid rgba(0, 103, 102, .2); outline-offset: 0; }
.field textarea { resize: vertical; min-height: 7.5rem; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form-status { min-height: 1.5rem; font-weight: 550; }
.form-status.ok { color: #0b5a2a; }
.form-status.bad { color: #a3210f; }

/* footer */
.foot { background: var(--deep); color: var(--on-deep-soft); font-size: .925rem; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.75rem; }
.foot strong { color: #fff; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 62rem) {
  .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; }
  .parts li { border-right: 0; margin-right: 0; padding-right: 1.25rem; border-top: 3px solid var(--deep); }
  .controls-grid, .trade-grid { grid-template-columns: minmax(0, 1fr); }
  .ledger { position: static; }
}
@media (max-width: 52rem) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-text { padding-bottom: 0; }
  .carousel { margin-inline: -.5rem; }
  .feature, .feature.flip, .company, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-text { order: 0; }
  .company-mark { max-width: 16rem; }
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: -1.25rem; right: -1.25rem; background: var(--deep); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; border-bottom: 1px solid #1c4a49; }
  .nav.open { display: flex; }
  .nav a { padding: .85rem 0; border-top: 1px solid #1c4a49; font-size: 1.05rem; }
  .nav .nav-cta { margin-top: .75rem; text-align: center; border-top: 0; padding: .85rem; }
}
@media (max-width: 34rem) {
  body { font-size: 1rem; }
  .parts { grid-template-columns: 1fr; }
  .ctl th { width: auto; display: block; padding-bottom: 0; border-bottom: 0; }
  .ctl td { display: block; padding-top: .25rem; }
  .ledger { margin-inline: -.5rem; padding: 1rem .75rem; }
  .ledger table { font-size: .74rem; }
  .ledger th { font-size: .64rem; letter-spacing: 0; }
  .ledger td, .ledger th { padding-inline: .2rem; }
  .steps li { padding-left: 2.9rem; }
  .car-slide figcaption { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The statement table is five columns of figures: on narrow phones drop the
   reference column so nothing scrolls sideways. */
.ledger { overflow-x: auto; }
@media (max-width: 34rem) {
  .ledger thead th:nth-child(2), .ledger tbody td:nth-child(2) { display: none; }
  .ledger table { font-size: .8rem; }
}

.contact-mail a { white-space: nowrap; }
.foot a { color: var(--on-deep); }

/* client spotlight: two panels, each in its own solid colour */
.clients { padding-bottom: 0 !important; }
.client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.client { border-radius: calc(var(--radius) + 6px); padding: clamp(1.5rem, 3.5vw, 2.75rem); }
.client-a { background: var(--deep); color: var(--on-deep); }
.client-b { background: var(--teal); color: #fff; }
.client-logo { height: 6.5rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.client-where { color: #d3e3e3; font-size: .975rem; margin-bottom: 1.5rem; text-align: center; }
.client-logo img { max-height: 100%; width: auto; max-width: min(100%, 21rem); }
.client-a .client-logo img { max-height: 4rem; }
.client-tag { font-size: .78rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .22); }
.client ul { margin-top: .9rem; display: grid; gap: .6rem; }
.client li { padding-left: 1.4rem; position: relative; color: #e6f0f0; }
.client li::before { content: "+"; position: absolute; left: 0; color: var(--amber); font-weight: 700; }
@media (max-width: 52rem) { .client-grid { grid-template-columns: minmax(0, 1fr); } }

/* client spotlight: centred heading and closing line */
.clients .section-head { text-align: center; margin-inline: auto; }
.client-cta { text-align: center; margin-top: clamp(1.75rem, 3vw, 2.5rem); font: 650 clamp(1.2rem, 2vw, 1.5rem)/1.3 var(--serif); }
.client-cta a { color: var(--ink); text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: .3em; }
.client-cta a:hover { color: var(--teal); }
