/* ============================================================
   solutions.css — ServiceManago rozwiązania / SEO subpages
   Loaded AFTER intro.css. Reuses intro.css tokens + utilities.
   D8: NEVER redefine .blue/.green/.orange/.violet/.pink/.cyan.
   D9: all new classes prefixed sol-.
   Breakpoints (D5): 1024px (hero split -> vertical, mega-menu -> accordion),
   580px (small-phone scaling). 850px stays intro-owned (nav).
   ============================================================ */

/* ---- Mega-menu (full styling; navbar.php has a scoped fallback) ---- */
.sol-has-mega { position: relative; }
.sol-mega-trigger { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0; padding: 0; font: inherit; font-size: 12px; font-weight: 600; color: inherit; }
.sol-mega-trigger:hover { color: var(--blue); }
.nav-caret { width: 16px; height: 16px; transition: transform .2s; }
.sol-has-mega.is-open .nav-caret,
.sol-mega-trigger[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
.sol-mega-panel {
    position: absolute; top: calc(100% + 16px); left: 0; min-width: 280px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 24px 60px #2b4a9522; padding: 12px;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease; z-index: 40;
}
.sol-has-mega:hover .sol-mega-panel,
.sol-has-mega:focus-within .sol-mega-panel,
.sol-has-mega.is-open .sol-mega-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.sol-mega-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sol-mega-panel a { display: flex; flex-direction: column; gap: 3px; padding: 10px 13px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.sol-mega-panel a:hover { background: var(--soft); color: var(--blue); }
.sol-mega-panel a small { font-size: 11px; font-weight: 400; color: var(--muted); }

/* ---- Breadcrumb ---- */
.sol-breadcrumb { padding: 22px 0 0; }
.sol-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; font-size: 12px; color: var(--muted); }
.sol-breadcrumb a { color: var(--muted); font-weight: 600; }
.sol-breadcrumb a:hover { color: var(--blue); }
.sol-breadcrumb li[aria-current] { color: var(--ink); font-weight: 600; }
.sol-breadcrumb .sol-crumb-sep { color: #b9c2d6; }

/* ---- Hero ---- */
.sol-hero { background: linear-gradient(180deg, #fff 0%, #fff 44%, #f5f6ff 78%, #e8edff 100%); overflow: hidden; }
.sol-hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; padding: 46px 0 78px; }
.sol-hero-copy h1 { font-size: clamp(34px, 4vw, 54px); font-weight: 800; line-height: 1.1; letter-spacing: -2px; margin-top: 6px; }
.sol-hero-copy > p { max-width: 480px; margin-top: 22px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.sol-hero-copy > p.sol-hero-extra { margin-top: 14px; }
.sol-hero-copy > p strong { color: var(--ink); font-weight: 600; }
.sol-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.sol-hero-visual { position: relative; min-width: 0; }

/* Generic card / panel surface used by hero visuals + mockups */
.sol-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px #2b4a9514; padding: 18px; }
.sol-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sol-card-title { font-size: 15px; font-weight: 700; }
.sol-meta-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.sol-meta-list li { display: flex; justify-content: space-between; gap: 14px; font-size: 12px; color: var(--muted); border-bottom: 1px dashed #eef1f8; padding-bottom: 9px; }
.sol-meta-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.sol-meta-list strong { color: var(--ink); font-weight: 600; text-align: right; }

/* ---- Generic flow / pipeline / node primitives ---- */
.sol-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px; }
.sol-flow-h { flex-direction: row; }
.sol-flow-v { flex-direction: column; }
.sol-node { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px; flex: 1 1 150px; min-width: 0; }
.sol-node b { display: block; font-size: 14px; }
.sol-node span { font-size: 12px; color: var(--muted); }
.sol-node .icon-tile { margin-bottom: 12px; }
.sol-connector { align-self: center; color: #b7c3e0; display: inline-flex; }
.sol-connector .icon { width: 20px; height: 20px; }
.sol-flow-v .sol-connector { transform: rotate(90deg); }

/* Numbered process steps */
.sol-steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sol-steps.sol-steps-6 { grid-template-columns: repeat(6, 1fr); }
.sol-step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px; }
.sol-step-no { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: #eff3ff; color: var(--blue); font-weight: 700; font-size: 13px; margin-bottom: 14px; }
.sol-step h3 { font-size: 16px; margin-bottom: 8px; }
.sol-step p { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ---- Feature / benefit grids ---- */
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sol-grid-2 { grid-template-columns: repeat(2, 1fr); }
.sol-feature { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.sol-feature h3 { font-size: 17px; margin: 18px 0 8px; }
.sol-feature p { font-size: 13px; color: var(--muted); line-height: 1.8; }

/* Problem -> solution lists */
.sol-problem-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sol-problem-list li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 15px 18px; font-size: 14px; }
.sol-problem-list .icon { width: 20px; height: 20px; color: #c7823c; flex-shrink: 0; margin-top: 1px; }
.sol-punchline { margin-top: 26px; font-size: 17px; font-weight: 600; color: var(--ink); max-width: 720px; }
.sol-narrative { font-size: 16px; color: var(--muted); line-height: 1.9; max-width: 720px; }
.sol-narrative strong { color: var(--ink); font-weight: 600; }

/* ---- In-body screenshot preview ---- */
.sol-screenshot { max-width: 920px; margin: 0 auto; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px #2b4a9518; background: #fff; }
.sol-screenshot img { display: block; width: 100%; height: auto; }
.sol-screenshot figcaption { font-size: 12px; color: var(--muted); padding: 12px 18px; border-top: 1px solid var(--line); }

/* ---- Use-case / schedule list ---- */
.sol-usecase-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sol-usecase { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 18px 20px; display: grid; gap: 6px; }
.sol-usecase-time { font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: .5px; }
.sol-usecase h3 { font-size: 16px; }
.sol-usecase p { font-size: 13px; color: var(--muted); }

/* ---- Enterprise box ---- */
.sol-enterprise { background: #17346a; color: #fff; border-radius: 20px; padding: 44px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.sol-enterprise h3 { font-size: 26px; color: #fff; }
.sol-enterprise p { color: #b5c7e6; font-size: 14px; margin-top: 14px; }
.sol-enterprise ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sol-enterprise li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.sol-enterprise li .icon { width: 18px; height: 18px; color: #8fb0ff; }

/* ---- Highlight / cross-link callout woven styling ---- */
.sol-link-inline { font-weight: 600; }
.sol-callout { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; }
.sol-callout h3 { font-size: 18px; }
.sol-callout p { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.8; }

/* ---- Footer Rozwiązania column reuse (relies on intro .footer) ---- */
.sol-footer-col a { display: block; }

/* ---- Reveal: visible by default; JS only adds motion ---- */
.sol-reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
    .sol-reveal.sol-reveal--armed { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
    .sol-reveal.is-visible { opacity: 1; transform: none; }
}

/* ============================================================
   D2 — distinct hero visuals (one unique CSS composition per page)
   ============================================================ */

/* PAGE 1: company-ecosystem hub */
.sol-hub { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sol-hub-core { grid-column: 2; text-align: center; background: var(--blue); color: #fff; border-radius: 14px; padding: 18px 14px; box-shadow: 0 18px 40px #2859e835; }
.sol-hub-core small { font-size: 10px; letter-spacing: 1px; opacity: .85; display: block; }
.sol-hub-core b { font-size: 15px; display: block; margin-top: 4px; }
.sol-hub-spine { grid-column: 2; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; color: var(--muted); font-weight: 600; }
.sol-hub-spine .icon { width: 14px; height: 14px; color: #b7c3e0; }
.sol-hub-node { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px; text-align: center; font-size: 12px; font-weight: 600; box-shadow: 0 10px 26px #2b4a9510; }
.sol-hub-node .icon-tile { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 8px; }
.sol-hub-node .icon { width: 18px; height: 18px; }
.sol-hub-ring { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* PAGE 2: order card + vertical status timeline */
.sol-order { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
.sol-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.sol-timeline li { position: relative; padding: 0 0 20px 26px; font-size: 13px; color: var(--muted); }
.sol-timeline li:last-child { padding-bottom: 0; }
.sol-timeline li::before { content: ""; position: absolute; left: 4px; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid #c6d2ec; }
.sol-timeline li::after { content: ""; position: absolute; left: 9px; top: 14px; bottom: 0; width: 2px; background: #e4eaf6; }
.sol-timeline li:last-child::after { display: none; }
.sol-timeline li.is-active { color: var(--ink); font-weight: 600; }
.sol-timeline li.is-active::before { background: var(--blue); border-color: var(--blue); }

/* PAGE 3: CSS map mockup (NO external tiles) */
.sol-map { position: relative; width: 100%; max-width: 100%; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 16px; border: 1px solid var(--line);
    background:
        linear-gradient(#e9eefb 1px, transparent 1px) 0 0 / 100% 44px,
        linear-gradient(90deg, #e9eefb 1px, transparent 1px) 0 0 / 56px 100%,
        radial-gradient(circle at 70% 30%, #eaf0ff, #f4f7fe);
}
.sol-map-road { position: absolute; background: #dbe3f4; }
.sol-map-road.r1 { left: 0; right: 0; top: 46%; height: 10px; }
.sol-map-road.r2 { top: 0; bottom: 0; left: 38%; width: 10px; }
.sol-map-pin { position: absolute; transform: translate(-50%, -100%); display: inline-flex; flex-direction: column; align-items: center; background: transparent; border: 0; padding: 0; cursor: pointer; color: var(--blue); }
.sol-map-pin .icon { width: 26px; height: 26px; filter: drop-shadow(0 4px 6px #2b4a9530); }
.sol-map-pin span { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 2px 7px; font-size: 10px; font-weight: 700; color: var(--ink); margin-top: 2px; white-space: nowrap; }
.sol-map-pin.is-active .icon, .sol-map-pin:hover .icon, .sol-map-pin:focus-visible .icon { color: #c34d86; transform: scale(1.12); }
.sol-map-grid { margin-top: 16px; display: grid; gap: 10px; }
.sol-schedule-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; transition: border-color .18s, box-shadow .18s; }
.sol-schedule-card.is-active { border-color: var(--blue); box-shadow: 0 10px 26px #2859e820; }
.sol-schedule-card b { font-size: 13px; }
.sol-schedule-card span { display: block; font-size: 12px; color: var(--muted); }

/* PAGE 4: vertical service pipeline with animated active node */
.sol-pipeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 420px; }
.sol-pipeline li { position: relative; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 14px; font-weight: 600; }
.sol-pipeline li .icon-tile { width: 36px; height: 36px; border-radius: 10px; }
.sol-pipeline li .icon { width: 18px; height: 18px; }
.sol-pipeline li.is-step-active { border-color: var(--blue); box-shadow: 0 10px 26px #2859e81f; }

/* PAGE 5: enterprise department-flow (reuses .sol-flow) */
.sol-deptflow .sol-node b { font-size: 13px; }
.sol-deptflow .sol-node .sol-dept-tag { display: inline-block; margin-top: 6px; font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: var(--blue); font-weight: 700; }

/* PAGE 6: shelf/locations grid + parts card */
.sol-shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sol-shelf-cell { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 10px; text-align: center; font-weight: 700; font-size: 14px; color: var(--muted); }
.sol-shelf-cell small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .5px; color: #aab4c7; margin-bottom: 8px; }
.sol-shelf-cell.is-found { border-color: #e9b14c; color: var(--ink); box-shadow: 0 0 0 3px #f6d79b55, 0 10px 26px #e9b14c33; background: #fffdf6; }
.sol-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sol-parts li { display: flex; align-items: center; gap: 10px; font-size: 13px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; }
.sol-parts .icon { width: 18px; height: 18px; }
.sol-parts .ok { color: #268265; }
.sol-parts .warn { color: #ad7227; }

/* Keyframe for the animated service node (gated below) */
@keyframes sol-pulse { 0%, 100% { box-shadow: 0 10px 26px #2859e81f; } 50% { box-shadow: 0 10px 30px #2859e840; } }
@media (prefers-reduced-motion: no-preference) {
    .sol-pipeline li.is-step-active { animation: sol-pulse 1.6s ease-in-out infinite; }
}

/* ============================================================
   D5 — breakpoints
   ============================================================ */
@media (max-width: 1024px) {
    .sol-hero .container { grid-template-columns: 1fr; gap: 36px; padding: 32px 0 60px; }
    .sol-grid, .sol-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .sol-steps, .sol-steps.sol-steps-6 { grid-template-columns: repeat(2, 1fr); }
    .sol-flow-h { flex-direction: column; }
    .sol-flow-h .sol-connector { transform: rotate(90deg); }
    .sol-order { grid-template-columns: 1fr; }
    .sol-enterprise { grid-template-columns: 1fr; padding: 34px 30px; }

    /* Mega-menu -> accordion when nav collapses (intro nav collapses at 850,
       but author the panel to flow in-document on narrow screens) */
    .sol-mega-panel { position: static; min-width: 0; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; border-radius: 0; padding: 0; margin: 6px 0 0; }
    .sol-has-mega:hover .sol-mega-panel, .sol-has-mega:focus-within .sol-mega-panel { }
    .sol-has-mega:not(.is-open) .sol-mega-panel { display: none; }
    .sol-has-mega.is-open .sol-mega-panel { display: block; }
    .sol-mega-trigger { width: 100%; justify-content: space-between; }
}

@media (max-width: 580px) {
    .sol-hero-copy h1 { font-size: 32px; letter-spacing: -1.2px; }
    .sol-hero-copy > p { font-size: 14px; }
    .sol-grid, .sol-grid-2, .sol-steps, .sol-steps.sol-steps-6 { grid-template-columns: 1fr; }
    .sol-hub { grid-template-columns: 1fr; }
    .sol-hub-core, .sol-hub-spine { grid-column: 1; }
    .sol-hub-ring { grid-template-columns: repeat(2, 1fr); }
    .sol-enterprise { padding: 28px 22px; }
    .sol-enterprise h3 { font-size: 22px; }

    /* D6: collapse map pins into the static schedule list so nothing is clipped */
    .sol-map { display: none; }
    .sol-map-grid { margin-top: 0; }
}

/* =====================================================================
   FLAT DESIGN OVERRIDE (solutions subpages) — loaded last, authoritative.
   Matches the homepage flat look: no rounded corners on cards/panels,
   no gradients, no glow shadows. Dots/pins stay round on purpose.
   ===================================================================== */

/* Flat corners on every card/panel surface */
.sol-mega-panel,
.sol-card,.sol-node,.sol-step,.sol-step-no,.sol-feature,
.sol-problem-list li,.sol-callout,.sol-enterprise,.sol-screenshot,
.sol-usecase,.sol-hub-core,.sol-hub-node,.sol-pipeline li,.sol-pipeline li .icon-tile,
.sol-hub-node .icon-tile,.sol-map,.sol-schedule-card,.sol-shelf-cell,.sol-parts li,
.sol-order,.icon-tile{border-radius:0}

/* Keep genuinely circular markers round */
.sol-timeline li::before,.sol-map-pin .icon{border-radius:50%}

/* Flat fills: kill gradients on subpage hero + enterprise box */
.sol-hero{background:#fff;border-bottom:1px solid var(--line)}
.sol-enterprise{background:var(--ink)}

/* Flat shadows: replace glow/soft shadows with the hairline border already present */
.sol-mega-panel,.sol-card,.sol-feature,.sol-step,.sol-node,.sol-screenshot,
.sol-hub-core,.sol-hub-node,.sol-pipeline li,.sol-pipeline li.is-step-active,
.sol-schedule-card,.sol-schedule-card.is-active,.sol-shelf-cell,.sol-shelf-cell.is-found{box-shadow:none}

/* Disable the pulsing glow animation on the active pipeline node */
@media (prefers-reduced-motion: no-preference){
    .sol-pipeline li.is-step-active{animation:none}
}
