/* thesolutioncentre.com.au — site styles
   One file, no build step. Tokens first, then base, layout, components, pages. */

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("/fonts/opensans-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #345dcf;
  --blue-dark: #2a4cab;      /* hover / pressed */
  --blue-ink: #2647a8;       /* blue text on pale backgrounds: 6.4:1 on --page */
  --page: #e0e4f6;
  --card: #f2f2f0;
  --white: #ffffff;
  --text: #1d1a18;
  --muted: #4a4744;          /* secondary text: 7.4:1 on --card */
  --line: #c9d1ee;
  --tint: #eef1fb;
  --alert: #c2554f;          /* data graphics only: thresholds, warnings */
  --focus: #ffbf47;

  --font-head: Montserrat, "Segoe UI", system-ui, sans-serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 1100px;
  --gutter: 16px;
  --gap: 24px;
  --radius: 6px;
  --section: clamp(48px, 8vw, 96px);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; display: block; }
picture { display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--blue-ink);
  line-height: 1.25;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: .01em; }
p { margin: 0 0 1em; }
a { color: var(--blue-ink); text-underline-offset: .15em; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
strong { font-weight: 700; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--white); color: var(--text); padding: 10px 16px;
  font-weight: 700; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 8px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--white { background: var(--white); }
.center { text-align: center; }
.narrow { max-width: 46rem; margin-left: auto; margin-right: auto; }

.kicker {
  font-family: var(--font-head);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text);
  opacity: .75;
  margin: 0 0 .75rem;
}
.lead { font-size: 1.15rem; font-style: italic; color: var(--text); }
.note { font-size: .9rem; font-style: italic; color: var(--muted); margin-top: 1.5rem; }
.divider { border: 0; border-top: 1px solid var(--line); margin: var(--section) 0 calc(var(--section) * .75); }

.btn {
  display: inline-block;
  font: 700 1rem/1 var(--font-head);
  padding: 15px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn--light { background: var(--white); color: var(--blue-ink); border-color: var(--white); }
.btn--light:hover { background: var(--page); color: var(--blue-ink); border-color: var(--page); }

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

.site-header { background: var(--blue); color: var(--white); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 76px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; margin-right: auto; padding: 6px 0; }
.brand img { width: 56px; height: auto; }
.brand span { font: 700 1rem/1.15 var(--font-head); letter-spacing: .02em; }
.brand small { display: block; font-weight: 400; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.nav-toggle {
  display: none; background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.7); border-radius: var(--radius);
  font: 700 .9rem/1 var(--font-head); padding: 10px 14px; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 2px; }
.site-nav a {
  display: block; color: var(--white); text-decoration: none;
  font: 400 .95rem/1 var(--font-head); padding: 12px 10px; border-radius: var(--radius);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255,255,255,.14); color: var(--white); }

@media (max-width: 900px) {
  /* Without JS the nav stays visible below the brand; with JS it collapses behind the toggle. */
  .site-nav { flex-basis: 100%; padding-bottom: 12px; }
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 14px 8px; font-size: 1.05rem; border-top: 1px solid rgba(255,255,255,.15); border-radius: 0; }
}

/* ---------- hero and photo bands ---------- */

.band { position: relative; overflow: hidden; color: var(--white); background: #1b2440; }
.band__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.band__img picture, .band__img img { width: 100%; height: 100%; object-fit: cover; }
.band .wrap { position: relative; }
.band__panel {
  background: rgba(14, 18, 32, .72);
  padding: clamp(24px, 4vw, 44px);
  max-width: 36rem;
  border-radius: var(--radius);
}
.band__panel h1, .band__panel h2 { color: var(--white); }
.band__panel p:last-child { margin-bottom: 0; }
.hero { padding: clamp(64px, 14vw, 160px) 0; }
.about { padding: clamp(56px, 10vw, 120px) 0; }

/* ---------- cards and grids ---------- */

.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: center; }
.card { background: var(--card); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card__icon { width: 64px; height: 64px; background: var(--blue); border-radius: var(--radius); padding: 12px; margin-bottom: 18px; }
.card__icon svg { width: 40px; height: 40px; fill: var(--white); }
.card__links { margin-top: 1rem; font-size: .92rem; }
.section-head { margin-bottom: 40px; }
.section-head p { max-width: 46rem; }
.section-head.center p { margin-left: auto; margin-right: auto; }

.figure { margin: 0; }
.figure img { border-radius: var(--radius); width: 100%; }
.figure figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }

/* ---------- spec strip ---------- */

.spec {
  background: var(--tint);
  border-left: 5px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 8px 24px;
  margin: 40px 0 0;
}
.spec div { display: grid; grid-template-columns: 11rem 1fr; gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec div:last-child { border-bottom: 0; }
.spec dt { font: 700 .95rem/1.5 var(--font-head); color: var(--blue-ink); }
.spec dd { margin: 0; }
@media (max-width: 600px) { .spec div { grid-template-columns: 1fr; } }

/* ---------- infographics ---------- */

.graphic { background: var(--white); border-radius: var(--radius); padding: 24px; margin-top: 32px; }
.graphic h3 { margin-bottom: .3em; }
.graphic > p { color: var(--muted); font-size: .95rem; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll-x > svg { min-width: 620px; }
.scroll-x:focus-visible { outline-offset: 4px; }
.graphic svg text { font-family: var(--font-body); }
.graphic--compact svg { max-width: 760px; }

/* ---------- telemetry panel ---------- */

.telemetry { background: var(--white); border-radius: var(--radius); padding: 24px; margin-top: 32px; border: 1px solid var(--line); }
.telemetry__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 16px; }
.telemetry__head h3 { margin: 0; }
.telemetry__source { font: 700 .8rem/1.4 var(--font-head); letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--page); color: var(--text); }
.telemetry__source--live { background: #dff1e3; color: #1d4d2a; }
.telemetry__source--stale { background: #f8e2e0; color: #6b211d; }
.telemetry__time { font-size: .9rem; color: var(--muted); margin: 0 0 16px; }
.node { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.node:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.node h4 { font-size: 1.05rem; margin-bottom: 4px; }
.node__grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 0; }
.stats div { background: var(--tint); border-radius: var(--radius); padding: 10px 12px; }
.stats dt { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stats dd { margin: 0; font: 700 1.1rem/1.3 var(--font-head); color: var(--text); }

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

.cta { background: var(--blue); color: var(--white); text-align: center; padding: clamp(48px, 8vw, 88px) 0; }
.cta h2 { color: var(--white); }
.cta p { max-width: 40rem; margin: 0 auto 1.6rem; }

/* ---------- rotator ---------- */

.rotator { position: relative; }
.rotator__slides { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); }
.slide { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: center; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.slide picture { height: 100%; }
.slide img { width: 100%; height: 100%; max-height: 380px; object-fit: cover; }
.slide__text { padding: 28px; }
.slide__text h3 { font-size: clamp(1.2rem, 2.6vw, 1.6rem); }
.rotator__controls { display: none; gap: 8px; justify-content: center; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.js .rotator__controls { display: flex; }
.js .rotator__slides { display: block; }
.js .slide[hidden] { display: none; }
.rotator__controls button {
  font: 700 .9rem/1 var(--font-head); background: var(--white); color: var(--blue-ink);
  border: 2px solid var(--blue); border-radius: var(--radius); padding: 10px 14px; cursor: pointer; min-width: 44px; min-height: 44px;
}
.rotator__controls button[aria-current="true"] { background: var(--blue); color: var(--white); }

/* ---------- gallery ---------- */

.gallery { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); list-style: none; margin: 0; padding: 0; }
.gallery figure { margin: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; height: 100%; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 12px 16px; font-size: .92rem; }

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

.site-footer { background: var(--blue); color: var(--white); padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: var(--white); }
.site-footer h2 { color: var(--white); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer-grid address { font-style: normal; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-logo { width: 72px; margin-bottom: 14px; }
.footer-social a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 0; }
.footer-social svg { width: 26px; height: 26px; fill: currentColor; }
.footer-base { border-top: 1px solid rgba(255,255,255,.25); margin-top: 40px; padding-top: 20px; font-size: .85rem; }

/* ---------- content pages (datasheets, legal, privacy) ---------- */

.page-head { background: var(--white); padding: clamp(36px, 6vw, 64px) 0 28px; }
.breadcrumb { font-size: .9rem; margin-bottom: 12px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--muted); }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.review-note { background: #fff4d6; border-left: 5px solid #b57f00; padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 2rem; }

.sheet { background: var(--white); border-radius: var(--radius); padding: 28px; margin-bottom: var(--gap); scroll-margin-top: 16px; }
.sheet h2 { font-size: 1.4rem; }
.sheet table, .spec-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.sheet th, .sheet td, .spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.sheet th, .spec-table th { width: 34%; font-family: var(--font-head); color: var(--blue-ink); }
.spec-table tr:nth-child(odd) { background: var(--tint); }
.sheet__actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 1rem; }
.doc-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.doc-link svg { width: 18px; height: 22px; fill: currentColor; flex: none; }
.sheet-index { columns: 2 16rem; margin: 0 0 2rem; padding-left: 1.2rem; }

/* ---------- shop ---------- */

.shop-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin: 0 0 28px; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills a { display: inline-block; padding: 9px 16px; border-radius: 99px; background: var(--white); text-decoration: none; font: 400 .92rem/1.2 var(--font-head); border: 1px solid var(--line); }
.pills a[aria-current="page"] { background: var(--blue); color: var(--white); border-color: var(--blue); }
.sort-form { display: flex; gap: 8px; align-items: center; }
.sort-form select, .sort-form button { font: inherit; padding: 8px 10px; border-radius: var(--radius); border: 1px solid #8e9bd6; background: var(--white); min-height: 44px; }
.sort-form button { background: var(--blue); color: var(--white); border-color: var(--blue); font-family: var(--font-head); font-weight: 700; }
.js .sort-form button { display: none; }
.products { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.product-card { background: var(--card); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--white); }
.product-card .noimg { aspect-ratio: 1; background: var(--white); display: grid; place-items: center; color: var(--muted); font-size: .9rem; }
.product-card__body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card h2 { font-size: 1.1rem; margin: 0; }
.product-card h2 a { text-decoration: none; }
.product-card h2 a::after, .product-card h3 a::after { content: ""; position: absolute; inset: 0; }
.product-card { position: relative; }
.product-card p { margin: 0; font-size: .95rem; color: var(--muted); }
.product-card .view { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--blue-ink); }
.price { font: 700 1.15rem/1.3 var(--font-head); color: var(--text); }
.price del { font-weight: 400; color: var(--muted); font-size: .9em; margin-left: 6px; }
.price small { font: 400 .8rem/1 var(--font-body); color: var(--muted); margin-left: 4px; }
.made-to-order { background: var(--white); border-radius: var(--radius); padding: 24px 28px; margin-top: 32px; border-left: 5px solid var(--blue); }
.made-to-order p:last-child { margin-bottom: 0; }
.empty { background: var(--white); border-radius: var(--radius); padding: 40px 28px; text-align: center; }
.pagination { margin-top: 32px; }
.pagination ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination a, .pagination span { display: inline-block; min-width: 44px; padding: 10px 14px; text-align: center; border-radius: var(--radius); background: var(--white); text-decoration: none; }
.pagination [aria-current="page"] { background: var(--blue); color: var(--white); }

.product { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: start; }
.product-gallery__main { background: var(--white); border-radius: var(--radius); overflow: hidden; }
.product-gallery__main img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.thumbs a { display: block; width: 84px; border: 2px solid transparent; border-radius: var(--radius); overflow: hidden; background: var(--white); }
.thumbs a[aria-current="true"] { border-color: var(--blue); }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.product-info .model { color: var(--muted); font-size: .92rem; margin-top: -.3rem; }
.product-info .price { font-size: 1.5rem; margin: 1rem 0 .25rem; }
.availability { margin-bottom: 1.25rem; }
.product-info .btn { margin: 8px 0 16px; }
.notice { background: #fff4d6; border-left: 5px solid #b57f00; padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.5rem; }
.description { max-width: 46rem; }
.description table { border-collapse: collapse; }
.description td, .description th { border: 1px solid var(--line); padding: 6px 10px; }

/* ---------- projects ---------- */

.projects { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.project-card { background: var(--card); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border-top: 4px solid var(--blue); }
.project-card__media { aspect-ratio: 16 / 10; background: var(--white); overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; }
.project-card__initials { width: 100%; height: 100%; display: grid; place-items: center; font: 700 2.6rem/1 var(--font-head); letter-spacing: .08em; color: var(--blue); opacity: .55;
  background-image: linear-gradient(rgba(52, 93, 207, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(52, 93, 207, .08) 1px, transparent 1px);
  background-size: 20px 20px; }
.project-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.project-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.project-card h2 { font-size: 1.15rem; margin: 0; }
.project-card__job { color: var(--muted); font-size: .85rem; margin: .2rem 0 0; }
.project-card__summary { margin: .6rem 0 0; }
.project-card__tags { list-style: none; margin: .75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.project-card__tags li { font-size: .78rem; border: 1px solid #8e9bd6; border-radius: var(--radius); padding: 2px 8px; }
.project-card__detail { margin-top: .75rem; font-size: .95rem; }
.project-card__detail summary { cursor: pointer; color: var(--blue-ink); font-family: var(--font-head); font-weight: 700; font-size: .9rem; }
.project-card__foot { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.project-card__access, .project-card__health { color: var(--muted); font-size: .88rem; margin: 0; }
.project-card__health .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.project-card__health--ok .dot { background: #4f7a5c; }
.project-card__health--down .dot { background: #c2554f; }
.btn--small { font-size: .92rem; padding: 11px 18px; display: inline-flex; align-items: center; gap: 8px; }
.btn--outline { background: transparent; color: var(--blue-ink); font-size: .92rem; padding: 11px 18px; }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn .ext { width: 14px; height: 14px; flex: none; }

/* Status pills — muted, never bright */
.status { font: 700 .7rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .08em; padding: 5px 9px; border-radius: 99px; white-space: nowrap; }
.status--live { background: #dce6de; color: #2e5238; }
.status--beta { background: #dde2f2; color: #2b3a6b; }
.status--development { background: #ede4d0; color: #6a4c12; }
.status--prototype, .status--internal { background: #e2e2e2; color: #444; }
