/* HSG IT consultancy layer (CR-352) — shared by hsgit.fi and hsgits.com.
 *
 * SOURCE OF TRUTH is websites/shared/consultancy.css. scripts/python/consultancy_sites/build.py
 * copies it into each site as /consultancy.css. Edit here, never in the copies.
 *
 * Loaded AFTER each site's styles.css. It reuses that file's tokens (--primary,
 * --accent, --dark, --text, --text-mid, --border) so each site keeps its own
 * brand colour, and it namespaces everything new under .cx- so the older
 * landing pages are not disturbed.
 *
 * Contrast: body copy uses --text-mid (#94a3b8 on #0c1425/#0f172a, about 7:1).
 * --text-dim is NOT used for anything a visitor must read.
 */

.cx-skip { position:absolute; left:-9999px; top:8px; z-index:300; background:#fff; color:#0f172a; padding:10px 16px; border-radius:8px; font-weight:700; }
.cx-skip:focus { left:8px; }
:where(a, button, input, select, textarea, summary):focus-visible { outline:3px solid var(--accent); outline-offset:2px; border-radius:6px; }

.cx-wrap { max-width:1200px; margin:0 auto; padding:0 24px; }
.cx-section { padding:84px 0; }
.cx-section.alt { background:rgba(255,255,255,0.025); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.cx-head { max-width:760px; margin:0 0 44px; }
.cx-head.center { margin-left:auto; margin-right:auto; text-align:center; }
.cx-eyebrow { display:inline-block; font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--accent); margin-bottom:12px; }
.cx-head h2 { font-size:clamp(1.7rem,3.2vw,2.5rem); line-height:1.15; font-weight:800; letter-spacing:-.02em; margin-bottom:14px; }
.cx-head h2 em { font-style:normal; color:var(--accent); }
.cx-head p { font-size:17px; color:var(--text-mid); line-height:1.7; }

/* Hero */
.cx-hero { position:relative; padding:88px 0 72px; overflow:hidden; }
.cx-hero::before { content:""; position:absolute; inset:0; background:radial-gradient(900px 420px at 80% -10%, rgba(99,102,241,.22), transparent 60%), radial-gradient(700px 380px at 0% 20%, rgba(6,182,212,.14), transparent 60%); pointer-events:none; }
.cx-hero .cx-wrap { position:relative; display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:56px; align-items:center; }
.cx-hero h1 { font-size:clamp(2.2rem,5vw,3.6rem); line-height:1.07; font-weight:800; letter-spacing:-.03em; margin:14px 0 20px; }
.cx-hero h1 .accent { background:linear-gradient(90deg,var(--accent),var(--primary-light)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.cx-lede { font-size:clamp(1.05rem,1.6vw,1.2rem); color:var(--text-mid); line-height:1.7; max-width:640px; }
.cx-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; }
.cx-hero.page { padding:56px 0 0; }
.cx-hero.page .cx-wrap { grid-template-columns:1fr; }
.cx-hero.page h1 { font-size:clamp(2rem,4.2vw,3rem); max-width:900px; }

.cx-crumbs { font-size:13px; color:var(--text-mid); margin-bottom:6px; }
.cx-crumbs a { color:var(--text-mid); text-decoration:underline; text-underline-offset:3px; }
.cx-crumbs a:hover { color:#fff; }

/* Proof strip */
.cx-proofbar { display:flex; flex-wrap:wrap; gap:10px 28px; margin-top:34px; padding-top:22px; border-top:1px solid var(--border); font-size:14px; color:var(--text-mid); }
.cx-proofbar strong { color:var(--text); }
.cx-proofbar a { color:var(--text); font-weight:700; text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--accent); }

/* Delivery map (hero visual) — plain HTML so the text is selectable and translatable */
.cx-map { background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02)); border:1px solid var(--border); border-radius:20px; padding:22px; box-shadow:0 30px 60px -30px rgba(0,0,0,.6); }
.cx-map h2 { font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--text-mid); font-weight:700; margin-bottom:14px; }
.cx-node { border:1px solid var(--border); background:rgba(12,20,37,.7); border-radius:14px; padding:14px 16px; }
.cx-node b { display:block; font-size:15px; }
.cx-node span { display:block; font-size:13px; color:var(--text-mid); margin-top:2px; }
.cx-node.you { border-color:rgba(6,182,212,.5); }
.cx-node.lead { border-color:rgba(99,102,241,.55); }
.cx-arrow { text-align:center; color:var(--accent); font-size:18px; line-height:1; padding:6px 0; }
.cx-overlap { margin-top:12px; font-size:12.5px; color:var(--text-mid); text-align:center; }

/* Cards and grids */
.cx-grid { display:grid; gap:22px; }
.cx-grid.c2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.cx-grid.c3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.cx-grid.c4 { grid-template-columns:repeat(4,minmax(0,1fr)); }
.cx-card { position:relative; background:rgba(255,255,255,.035); border:1px solid var(--border); border-radius:18px; padding:26px; display:flex; flex-direction:column; transition:border-color .2s, transform .2s, background .2s; }
a.cx-card { color:inherit; text-decoration:none; }
a.cx-card:hover { border-color:var(--primary-light); transform:translateY(-3px); background:rgba(255,255,255,.055); }
.cx-icon { width:44px; height:44px; border-radius:12px; display:grid; place-items:center; background:rgba(99,102,241,.16); color:var(--accent); font-weight:800; font-size:18px; margin-bottom:16px; }
.cx-card h3 { font-size:18px; line-height:1.3; font-weight:700; margin-bottom:8px; }
.cx-card p { font-size:15px; color:var(--text-mid); line-height:1.65; }
.cx-card .more { margin-top:auto; padding-top:16px; font-size:14px; font-weight:700; color:var(--accent); }
.cx-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; }
.cx-tag { font-size:12px; font-weight:600; padding:4px 10px; border-radius:100px; background:rgba(255,255,255,.06); border:1px solid var(--border); color:var(--text-mid); }

/* Product showcase */
.cx-product { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:0; border:1px solid var(--border); border-radius:20px; overflow:hidden; background:rgba(255,255,255,.03); }
.cx-product + .cx-product { margin-top:22px; }
.cx-product .l { padding:30px; border-right:1px solid var(--border); background:rgba(255,255,255,.025); }
.cx-product .r { padding:30px; }
.cx-product h3 { font-size:24px; font-weight:800; letter-spacing:-.01em; margin:8px 0 10px; }
.cx-product .k { font-size:12px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--text-mid); margin-bottom:8px; }
.cx-product ul { list-style:none; display:grid; gap:10px; }
.cx-product li { position:relative; padding-left:22px; font-size:15px; color:var(--text-mid); line-height:1.6; }
.cx-product li::before { content:"✓"; position:absolute; left:0; top:0; color:var(--accent); font-weight:800; }
.cx-product .why { margin-top:18px; padding-top:16px; border-top:1px solid var(--border); font-size:14px; color:var(--text-mid); }

/* Process */
.cx-steps { counter-reset:none; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.cx-step { position:relative; padding:24px; border-radius:18px; border:1px solid var(--border); background:rgba(255,255,255,.035); }
.cx-step .n { font-size:13px; font-weight:800; letter-spacing:.1em; color:var(--accent); }
.cx-step h3 { font-size:20px; margin:6px 0 8px; font-weight:800; }
.cx-step p { font-size:14.5px; color:var(--text-mid); line-height:1.65; }
.cx-step .art { margin-top:14px; display:inline-block; font-size:12px; font-weight:700; padding:4px 10px; border-radius:100px; background:rgba(6,182,212,.12); border:1px solid rgba(6,182,212,.35); color:var(--text); }

/* Engagement models — one row per model so the five can be compared at a glance */
.cx-models { display:grid; gap:14px; }
.cx-modelrow { display:grid; grid-template-columns:1fr 1.2fr 1.4fr 1.15fr; gap:26px; align-items:start; padding:22px 26px; border:1px solid var(--border); border-radius:16px; background:rgba(255,255,255,.035); }
.cx-modelrow.feature { border-color:var(--primary-light); box-shadow:0 0 0 1px var(--primary-light) inset; }
.cx-modelrow h3 { font-size:18px; font-weight:800; line-height:1.3; margin-bottom:8px; }
.cx-modelrow .lab { display:block; font-size:11px; letter-spacing:.1em; text-transform:uppercase; font-weight:700; color:var(--text-mid); margin-bottom:4px; }
.cx-modelrow p { font-size:15px; line-height:1.6; color:var(--text); margin:0; }
.cx-modelrow .p strong { display:block; font-size:19px; font-weight:800; color:var(--accent); line-height:1.25; }
.cx-modelrow .p small { display:block; font-size:12.5px; color:var(--text-mid); margin-top:4px; line-height:1.5; }

/* Checklists / key-value */
.cx-list { list-style:none; display:grid; gap:12px; }
.cx-list li { position:relative; padding-left:26px; font-size:16px; line-height:1.6; color:var(--text-mid); }
.cx-list li strong { color:var(--text); }
.cx-list li::before { content:""; position:absolute; left:2px; top:.5em; width:10px; height:10px; border-radius:3px; background:var(--accent); }
.cx-two { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:40px; align-items:start; }

/* Tech matrix */
.cx-tech { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.cx-tech section { border:1px solid var(--border); border-radius:16px; padding:20px; background:rgba(255,255,255,.03); }
.cx-tech h3 { font-size:13px; letter-spacing:.1em; text-transform:uppercase; color:var(--text-mid); margin-bottom:10px; }

/* FAQ */
.cx-faq { max-width:820px; margin:0 auto; }
.cx-faq details { border:1px solid var(--border); border-radius:14px; background:rgba(255,255,255,.035); padding:0 20px; margin-bottom:12px; }
.cx-faq summary { cursor:pointer; list-style:none; padding:18px 28px 18px 0; font-weight:700; font-size:16px; position:relative; }
.cx-faq summary::-webkit-details-marker { display:none; }
.cx-faq summary::after { content:"+"; position:absolute; right:0; top:50%; transform:translateY(-50%); font-size:22px; color:var(--accent); }
.cx-faq details[open] summary::after { content:"–"; }
.cx-faq details p { padding:0 0 18px; color:var(--text-mid); line-height:1.7; font-size:15.5px; }

/* CTA band */
.cx-cta { border:1px solid var(--border); border-radius:24px; padding:48px; text-align:center; background:linear-gradient(135deg,rgba(99,102,241,.22),rgba(6,182,212,.12)); }
.cx-cta h2 { font-size:clamp(1.6rem,3vw,2.2rem); font-weight:800; margin-bottom:10px; letter-spacing:-.02em; }
.cx-cta p { color:var(--text-mid); max-width:620px; margin:0 auto 24px; font-size:16.5px; line-height:1.65; }
.cx-cta .cx-actions { justify-content:center; margin-top:0; }
.cx-alt { margin:18px auto 0; font-size:14.5px; color:var(--text-mid); max-width:620px; }
.cx-alt a { color:var(--text); text-decoration:underline; text-underline-offset:3px; }

/* Brief form */
.cx-form { background:rgba(255,255,255,.04); border:1px solid var(--border); border-radius:20px; padding:30px; }
.cx-form .row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.cx-form .field { margin-top:16px; }
.cx-form label { display:block; font-size:13.5px; font-weight:600; margin-bottom:6px; }
.cx-form input, .cx-form select, .cx-form textarea { width:100%; padding:12px 14px; border-radius:10px; border:1px solid #8393ab; background:rgba(12,20,37,.8); color:var(--text); font:inherit; font-size:15px; }
.cx-form textarea { min-height:130px; resize:vertical; }
.cx-form ::placeholder { color:#a7b4c8; opacity:1; }
.cx-form .check { display:flex; gap:10px; align-items:flex-start; margin-top:16px; font-size:14px; color:var(--text-mid); }
.cx-form .check input { width:auto; margin-top:4px; }
.cx-form .hint { font-size:12.5px; color:var(--text-mid); margin-top:5px; }
.cx-form button[type=submit] { margin-top:22px; width:100%; justify-content:center; font-size:16px; padding:14px; }
.cx-form .result { margin-top:14px; font-size:14.5px; display:none; }
.cx-form .result.ok { color:#4ade80; display:block; }
.cx-form .result.err { color:#f87171; display:block; }

.cx-channels { display:grid; gap:14px; }
.cx-channel { border:1px solid var(--border); border-radius:14px; padding:16px 18px; background:rgba(255,255,255,.03); }
.cx-channel b { display:block; font-size:15px; }
.cx-channel span, .cx-channel a { font-size:14.5px; color:var(--text-mid); }
.cx-channel a { color:var(--accent); font-weight:600; text-decoration:underline; text-underline-offset:3px; }

/* Site chrome (nav/footer markers) */
.cx-footer-note { font-size:12.5px; color:var(--text-mid); margin-top:10px; line-height:1.6; }

.cx-tablewrap { overflow-x:auto; border-radius:12px; }
.cx-tablewrap:focus-visible { outline-offset:4px; }
.cx-table { width:100%; min-width:720px; border-collapse:collapse; font-size:15px; }
.cx-table th, .cx-table td { text-align:left; padding:14px 16px; border-bottom:1px solid var(--border); vertical-align:top; }
.cx-table thead th { font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--text-mid); }
.cx-table tbody th { font-weight:700; }
.cx-table td { color:var(--text-mid); }

/* Site chrome shared by both sites (hsgits' own stylesheet has no mobile menu) */
.nav-toggle { display:none; background:none; border:none; cursor:pointer; padding:8px; color:#fff; min-width:44px; min-height:44px; align-items:center; justify-content:center; }
.mobile-menu { display:none; position:fixed; inset:0; z-index:200; background:rgba(0,0,0,.6); backdrop-filter:blur(4px); }
.mobile-menu.open { display:block; }
.mobile-menu-panel { position:absolute; right:0; top:0; width:min(300px,85vw); height:100%; background:var(--dark); padding:24px; display:flex; flex-direction:column; gap:4px; box-shadow:-8px 0 30px rgba(0,0,0,.4); }
.mobile-menu-close { align-self:flex-end; background:none; border:none; cursor:pointer; padding:8px; color:var(--text-mid); min-width:44px; min-height:44px; margin-bottom:12px; }
.mobile-menu-close:hover { color:#fff; }
.mobile-menu-panel a { display:block; padding:12px 16px; font-size:16px; font-weight:500; color:var(--text-mid); border-radius:8px; }
.mobile-menu-panel a:hover, .mobile-menu-panel a[aria-current=page] { color:#fff; background:rgba(255,255,255,.06); }
.mobile-menu-cta { margin-top:16px; }
.mobile-menu-panel a.btn { color:#fff; }
.nav-links a[aria-current=page] { color:#fff; }
.footer .footer-grid { grid-template-columns:1.6fr 1.2fr 1fr 1fr 1.3fr; gap:36px; }
.cx-fh { font-size:12px; font-weight:700; color:var(--text-mid); text-transform:uppercase; letter-spacing:.06em; margin-bottom:18px; }
/* styles.css sets footer links and the language buttons in --text-dim (about 4:1 on the dark footer); WCAG AA needs 4.5:1 */
.footer-col a, .contact-mini a, .footer-bottom, .footer-bottom a { color:var(--text-mid); }
.footer-col a:hover { color:#fff; }
.lang-btn:not(.active) { color:var(--text-mid); }
.lang-btn:focus-visible { outline-offset:-3px; }
.cx-wrap .btn-outline, .mobile-menu .btn-outline { color:#e2e8f0; border-color:rgba(148,163,184,.5); }
.cx-wrap .btn-outline:hover { color:#fff; border-color:var(--primary-light); }
.logo, .nav-links a, .nav-right .btn { white-space:nowrap; }
@media (max-width:1100px) {
  .nav-links { display:none; }
  .nav-toggle { display:flex; }
  .nav-right .btn-outline { display:none; }
}
@media (max-width:1000px) { .footer .footer-grid { grid-template-columns:1fr 1fr; } }
@media (max-width:640px) { .footer .footer-grid { grid-template-columns:1fr; } .nav-right > .btn-primary { display:none; } }

@media (max-width:1000px) {
  .cx-hero .cx-wrap, .cx-two, .cx-product { grid-template-columns:1fr; }
  .cx-product .l { border-right:0; border-bottom:1px solid var(--border); }
  .cx-grid.c3, .cx-grid.c4, .cx-steps, .cx-tech { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cx-modelrow { grid-template-columns:1fr 1fr; }
}
@media (max-width:640px) {
  .cx-section { padding:60px 0; }
  .cx-hero { padding:56px 0 48px; }
  .cx-grid.c2, .cx-grid.c3, .cx-grid.c4, .cx-steps, .cx-tech, .cx-form .row, .cx-modelrow { grid-template-columns:1fr; }
  .cx-cta { padding:30px 20px; }
  .cx-form { padding:22px 18px; }
  }
@media (prefers-reduced-motion:reduce) { a.cx-card { transition:none; } a.cx-card:hover { transform:none; } html { scroll-behavior:auto; } }
