/* Softwear Suit site styles. Tokens and layout shared with design/mock/site.css. */
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin.woff2") format("woff2"); font-weight: 400 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --text: #16202c;
  --text-2: #4b5768;
  --text-3: #7a8594;
  --line: #dde3ea;
  --accent: #1e63c8;
  --accent-ink: #ffffff;
  --accent-soft: #e4eefb;
  --accent-deep: #0f3f88;
  --radius: 8px;
  --shadow: 0 10px 30px -12px rgb(30 99 200 / .25);
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --max: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e141c; --surface: #141c26; --surface-2: #1b2531;
    --text: #e8edf3; --text-2: #aab4c1; --text-3: #7d8896; --line: #253140;
    --accent: #5b9bf0; --accent-ink: #0b1b33; --accent-soft: #15284a; --accent-deep: #cfe0fb;
    --shadow: 0 10px 30px -12px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e141c; --surface: #141c26; --surface-2: #1b2531;
  --text: #e8edf3; --text-2: #aab4c1; --text-3: #7d8896; --line: #253140;
  --accent: #5b9bf0; --accent-ink: #0b1b33; --accent-soft: #15284a; --accent-deep: #cfe0fb;
  --shadow: 0 10px 30px -12px rgb(0 0 0 / .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.lede { color: var(--text-2); font-size: 1.1rem; max-width: 60ch; }
.muted { color: var(--text-3); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem; border-radius: var(--radius); font-weight: 600; font-size: .95rem; border: 1px solid transparent; transition: transform .15s ease, background .2s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.link { color: var(--accent); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.nav img { height: 36px; width: auto; }
.nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; font-weight: 500; font-size: .95rem; color: var(--text-2); }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--accent); }
.nav .btn { padding: .55rem 1rem; }
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav ul, .nav .btn { display: none; }
  .nav-toggle { display: inline-flex; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .7rem; color: var(--text); font: inherit; }
}

/* Sections */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 62ch; margin-bottom: 2.2rem; }
.section-head p { margin-top: .6rem; color: var(--text-2); font-size: 1.05rem; }

/* Hero */
.hero { padding-top: clamp(2rem, 5vw, 4rem); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero p { margin: 1.2rem 0 1.8rem; }
.hero .actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Logo wall */
.logos { padding: 2rem 0 2.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.logos .wrap { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem 2rem; align-items: center; }
.logos p { grid-column: 1 / -1; font-size: .85rem; color: var(--text-3); text-align: center; margin-bottom: .4rem; }
.logos img { margin: 0 auto; max-height: 44px; width: auto; filter: grayscale(1); opacity: .75; transition: .2s; }
.logos img:hover { filter: none; opacity: 1; }
@media (max-width: 900px) { .logos .wrap { grid-template-columns: repeat(3, 1fr); } }

/* Solutions grid: one large tinted tile + three plain tiles */
.offer { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 1rem; }
.offer article { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; gap: .6rem; }
.offer article:first-child { grid-row: 1 / 3; background: linear-gradient(160deg, var(--accent-deep), var(--accent)); color: #fff; border: 0; justify-content: flex-end; min-height: 320px; }
.offer article:first-child p { color: rgb(255 255 255 / .85); }
.offer article:first-child .link { color: #fff; }
.offer p { color: var(--text-2); font-size: .97rem; }
@media (max-width: 900px) { .offer { grid-template-columns: 1fr; } .offer article:first-child { grid-row: auto; min-height: 220px; } }

/* Vision band */
.vision { background: var(--surface-2); }
.vision .wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2.5rem; align-items: start; }
.vision blockquote { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; }
.vision .facts { display: grid; gap: 1rem; }
.vision .facts div { padding-top: 1rem; border-top: 1px solid var(--line); }
.vision .facts strong { display: block; font-size: 1.05rem; margin-bottom: .2rem; }
.vision .facts p { color: var(--text-2); }
@media (max-width: 900px) { .vision .wrap { grid-template-columns: 1fr; } }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.quotes figure { margin: 0; padding: 1.5rem; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.quotes blockquote { margin: 0 0 1rem; font-size: 1.05rem; }
.quotes figcaption { font-size: .9rem; color: var(--text-2); }
.quotes figcaption strong { color: var(--text); }
.quotes figure:first-child { grid-column: 1 / -1; font-size: 1.1rem; }
@media (max-width: 700px) { .quotes { grid-template-columns: 1fr; } }

/* News */
.news .wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 2.5rem; align-items: start; }
.news ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.news li { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; }
.news time { color: var(--text-3); font-variant-numeric: tabular-nums; font-size: .95rem; padding-top: .1rem; }
@media (max-width: 900px) { .news .wrap { grid-template-columns: 1fr; } }

/* Contact strip */
.cta { background: var(--accent); color: #fff; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta h2 { color: #fff; }
.cta p { color: rgb(255 255 255 / .85); margin-top: .4rem; }
.cta .btn { background: #fff; color: var(--accent-deep); }

/* Footer */
footer { padding: 3rem 0 2rem; border-top: 1px solid var(--line); font-size: .93rem; color: var(--text-2); }
footer .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
footer h4 { margin: 0 0 .7rem; color: var(--text); font-size: .95rem; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
footer a:hover { color: var(--accent); }
footer .legal { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--text-3); font-size: .85rem; }
footer .badge { height: 48px; width: auto; margin-top: 1rem; border-radius: 4px; }
@media (max-width: 900px) { footer .wrap { grid-template-columns: 1fr 1fr; } }

/* Inner page header */
.page-head { padding: clamp(2.5rem, 5vw, 4rem) 0 0; }
.page-head p { margin-top: .8rem; }

/* Services: grouped two-column list */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.services h3 { font-size: .95rem; color: var(--accent); margin-bottom: .6rem; text-transform: none; }
.services ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; color: var(--text-2); }
.services li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: .6rem; vertical-align: middle; }
@media (max-width: 800px) { .services { grid-template-columns: 1fr; } }

/* Tech + process split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.pills span { padding: .35rem .8rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); font-size: .9rem; }
.steps { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .8rem; }
.steps li { padding-left: 1.2rem; border-left: 2px solid var(--accent); color: var(--text-2); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }
.gallery img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; height: 100%; object-fit: cover; }
.gallery div { display: grid; gap: 1rem; }
@media (max-width: 800px) { .gallery { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }

/* Four-item variant: plain 2x2, no feature tile */
.offer.offer-4 { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
.offer.offer-4 article:first-child { grid-row: auto; background: var(--surface); color: inherit; border: 1px solid var(--line); min-height: 0; justify-content: flex-start; }
.offer.offer-4 article:first-child p { color: var(--text-2); }
@media (max-width: 700px) { .offer.offer-4 { grid-template-columns: 1fr; } }

/* Boot screen shown until the WebAssembly runtime starts */
.boot { min-height: 100dvh; display: grid; place-content: center; gap: 1.5rem; justify-items: center; }
.boot img { height: 48px; width: auto; }
.boot-bar { width: 160px; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.boot-bar span { display: block; width: 40%; height: 100%; background: var(--accent); animation: boot 1.2s ease-in-out infinite; }
@keyframes boot { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; padding: .8rem 1.2rem; background: #fff3cd; color: #5c4400; border-top: 1px solid #e0c36a; z-index: 20; }
#blazor-error-ui .dismiss { float: right; cursor: pointer; }

/* Skeleton loader */
.skeleton { padding: 3rem 20px; display: grid; gap: .9rem; }
.skeleton-line { height: 1rem; border-radius: 4px; background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton-line:first-child { height: 2.2rem; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Nav: mobile menu open state and NavLink active class */
.nav ul a.active { color: var(--accent); }
.nav .mobile-only { display: none; }
@media (max-width: 900px) {
  .nav nav { display: none; }
  .nav nav.open { display: block; position: absolute; left: 0; right: 0; top: 68px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav nav.open ul { display: grid; gap: 0; padding: .5rem 20px 1rem; }
  .nav nav.open li a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .nav .mobile-only { display: block; }
}

/* Utilities */
.pt-0 { padding-top: 0; }
.mt { margin-top: 2rem; }
.mt-s { margin-top: .6rem; }
.more { margin-top: 1.4rem; }
.wrap.block { display: block; }
.wrap.narrow { max-width: 780px; }
.body-copy { margin-top: .9rem; color: var(--text-2); max-width: 65ch; }
.lede + .pills, .lede + .steps { margin-top: 1rem; }
.section-head h2 + p, .page-head h1 + p { margin-top: .6rem; }
.news .lede { margin-top: .6rem; }

/* Info cards used on About, Partners and Contact */
.vision-card { padding: 1.4rem 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 1rem; }
.vision-card h3 { margin-bottom: .6rem; }
.vision-card blockquote { margin: 0; color: var(--text-2); font-size: 1.05rem; }
.vision-card ul { margin: 0; padding-left: 1.1rem; color: var(--text-2); display: grid; gap: .4rem; }
.vision-card p { color: var(--text-2); }
.partner-logo { margin-bottom: 1.2rem; border-radius: 4px; }

/* Testimonials page: every quote equal */
.quotes-all figure:first-child { grid-column: auto; font-size: inherit; }

/* News list (shared by home and news page) */
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.news-list li { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; }
.news-list time { color: var(--text-3); font-variant-numeric: tabular-nums; font-size: .95rem; padding-top: .1rem; }
.news-list p { color: var(--text-2); }
.news-list .link { margin-left: .3rem; }
@media (max-width: 500px) { .news-list li { grid-template-columns: 1fr; gap: .2rem; } }

/* Client logo grid */
.client-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.client-grid li { display: grid; place-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; min-height: 96px; }
.client-grid img { max-height: 56px; width: auto; }
@media (max-width: 900px) { .client-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .client-grid { grid-template-columns: repeat(2, 1fr); } }

/* Escape room page */
.er-intro { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.er-logo { height: auto; }
.er-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.er-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: #0b0f14; }
@media (max-width: 800px) { .er-grid { grid-template-columns: repeat(2, 1fr); } }

/* Contact form */
.contact-form { display: grid; gap: 1.1rem; max-width: 520px; margin-top: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 500; font-size: .95rem; }
.field input, .field textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .65rem .8rem; width: 100%; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field .invalid { border-color: #c0392b; }
.validation-message, .form-error { color: #b03024; font-size: .9rem; }
:root[data-theme="dark"] .validation-message, :root[data-theme="dark"] .form-error { color: #ff8a80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .validation-message, :root:not([data-theme="light"]) .form-error { color: #ff8a80; } }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-success { padding: 1.5rem; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--accent); margin-top: 1rem; }
.form-success p { margin-top: .4rem; color: var(--text-2); }
.contact-info .vision-card p + p { margin-top: .6rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Footer bits */
.footer-logo { height: 32px; width: auto; }
.footer-address { margin-top: .8rem; }

/* Hero carousel: slides stack in one grid cell and cross-fade */
.carousel .wrap { display: grid; grid-template-columns: 1fr; }
.carousel .slide { grid-area: 1 / 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.carousel .slide.active { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.carousel .as-h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.carousel .controls { grid-area: 2 / 1; display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.6rem; }
.carousel .arrow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-2); width: 36px; height: 36px; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.carousel .arrow:hover { border-color: var(--accent); color: var(--accent); }
.carousel .dots { display: flex; gap: .5rem; }
.carousel .dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; transition: background .2s, transform .2s; }
.carousel .dots button.on { background: var(--accent); transform: scale(1.3); }
@media (max-width: 900px) { .carousel .slide { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .carousel .slide { transition: none; } }

/* Image carousel (Solutions page) */
.img-carousel .frame { display: grid; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.img-carousel figure { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.img-carousel figure.active { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.img-carousel img { width: 100%; aspect-ratio: 745 / 306; object-fit: cover; }
.img-carousel figcaption { padding: .8rem 1.2rem; font-size: .95rem; color: var(--text-2); border-top: 1px solid var(--line); }
.img-carousel .controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.img-carousel .arrow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-2); width: 36px; height: 36px; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.img-carousel .arrow:hover { border-color: var(--accent); color: var(--accent); }
.img-carousel .dots { display: flex; gap: .5rem; }
.img-carousel .dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; transition: background .2s, transform .2s; }
.img-carousel .dots button.on { background: var(--accent); transform: scale(1.3); }
@media (prefers-reduced-motion: reduce) { .img-carousel figure { transition: none; } }
