/* ==========================================================================
   Croeso Informatics, "Prism" theme
   Premium minimalism + glass + bento grids + colourful gradients drawn from
   the Croeso logo ring (blue, cyan, violet, coral, sun). Loads after Bootstrap 5.2.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
    --ink: #0b1026;            /* headings */
    --ink-2: #3a4160;          /* body */
    --muted: #6b7290;
    --bg: #f6f7fb;
    --surface: #ffffff;
    --line: rgb(15 23 42 / 0.08);
    --line-strong: rgb(15 23 42 / 0.14);

    /* logo ring */
    --blue: #3b6cf6;
    --cyan: #22c3ee;
    --violet: #7c5cff;
    --coral: #f45162;
    --sun: #f8b830;
    --mint: #10b9a0;

    --grad-brand: linear-gradient(120deg, #3b6cf6 0%, #7c5cff 48%, #f45162 100%);
    --grad-ring: conic-gradient(from 200deg, #3b6cf6, #22c3ee, #7c5cff, #f45162, #f8b830, #3b6cf6);
    --grad-text: linear-gradient(100deg, #3b6cf6 0%, #7c5cff 40%, #f45162 75%, #f59e0b 100%);

    /* per-service accent (overridden by [data-accent]) */
    --acc-a: #3b6cf6;
    --acc-b: #7c5cff;

    --glass: rgb(255 255 255 / 0.62);
    --glass-strong: rgb(255 255 255 / 0.82);
    --glass-edge: rgb(255 255 255 / 0.75);

    --r-sm: 12px;
    --r: 16px;
    --r-lg: 20px;
    --r-xl: 24px;
    --r-2xl: 32px;

    --shadow-xs: 0 1px 2px rgb(16 24 64 / 0.05);
    --shadow-sm: 0 1px 2px rgb(16 24 64 / 0.05), 0 6px 16px -6px rgb(16 24 64 / 0.08);
    --shadow-md: 0 2px 4px rgb(16 24 64 / 0.04), 0 18px 40px -16px rgb(30 34 90 / 0.18);
    --shadow-lg: 0 30px 70px -24px rgb(40 36 120 / 0.30);
    --shadow-glow: 0 10px 30px -8px rgb(124 92 255 / 0.45);

    --font-display: "Sora", "DM Sans", ui-sans-serif, system-ui, sans-serif;
    --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);

    --bs-body-font-family: var(--font-body);
    --bs-body-color: var(--ink-2);
    --bs-body-bg: var(--bg);
    --bs-border-color: var(--line);
}

[data-accent="recruitment"] { --acc-a: #3b82f6; --acc-b: #22c3ee; }
[data-accent="payroll"]     { --acc-a: #7c5cff; --acc-b: #4f6bff; }
[data-accent="statutory"]   { --acc-a: #10b9a0; --acc-b: #3bb2f6; }
[data-accent="labour"]      { --acc-a: #f45162; --acc-b: #fb923c; }
[data-accent="it"]          { --acc-a: #d946ef; --acc-b: #7c5cff; }
[data-accent="brand"]       { --acc-a: #3b6cf6; --acc-b: #7c5cff; }

/* ---------- 2. Base ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink-2);
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: clip;
}

/* The soft mesh behind every page */
body::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 1100px; z-index: -1; pointer-events: none;
    background:
        radial-gradient(42% 38% at 12% 8%, rgb(59 108 246 / 0.20), transparent 70%),
        radial-gradient(36% 34% at 88% 4%, rgb(124 92 255 / 0.20), transparent 70%),
        radial-gradient(30% 30% at 70% 38%, rgb(244 81 98 / 0.12), transparent 70%),
        radial-gradient(28% 26% at 26% 46%, rgb(34 195 238 / 0.12), transparent 70%),
        radial-gradient(24% 24% at 96% 52%, rgb(248 184 48 / 0.12), transparent 70%);
}
/* fine dot grid, fading out */
body::after {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 900px; z-index: -1; pointer-events: none;
    background-image: radial-gradient(rgb(15 23 42 / 0.07) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
    mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

h1, h2, h3, h4, h5, h6, .h5 { font-family: var(--font-display); color: var(--ink); letter-spacing: -0.02em; line-height: 1.15; }
p { line-height: 1.7; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--violet); }
img { max-width: 100%; height: auto; }
main:focus { outline: none; }
::selection { background: rgb(124 92 255 / 0.22); color: var(--ink); }
:focus-visible { outline: 3px solid rgb(124 92 255 / 0.45); outline-offset: 2px; border-radius: 8px; }
section[id] { scroll-margin-top: 104px; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 2000; padding: 10px 16px;
    background: var(--ink); color: #fff; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { max-width: calc(1180px + 48px); padding-left: 24px; padding-right: 24px; }
@media (max-width: 575.98px) { .container { padding-left: 16px; padding-right: 16px; } }

.section { padding: 56px 0; position: relative; }
@media (min-width: 992px) { .section { padding: 88px 0; } }
.section-tight { padding-top: 24px; }

/* gradient text */
.px-grad, .highlight {
    background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
    font-weight: 600;
}
[data-accent] .highlight, [data-accent] .px-grad { background-image: linear-gradient(100deg, var(--acc-a), var(--acc-b)); }

/* ---------- 3. Section heads ---------- */
.section-head { margin-bottom: 32px; max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.6rem); font-weight: 650; margin: 14px 0 10px; }
.section-head p { font-size: 1.075rem; color: var(--muted); margin: 0; }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head-row > div { max-width: 860px; }

/* the small label pill above headings */
.px-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px;
    background: var(--glass-strong); border: 1px solid var(--line); box-shadow: var(--shadow-xs);
    font-size: .8125rem; font-weight: 600; color: var(--ink);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.px-chip .dot {
    width: 18px; height: 18px; border-radius: 999px; background: var(--grad-ring); position: relative; flex: 0 0 18px;
}
.px-chip .dot::after { content: ""; position: absolute; inset: 4px; border-radius: 999px; background: #fff; }
[data-accent] .px-chip .dot { background: linear-gradient(135deg, var(--acc-a), var(--acc-b)); }

/* ---------- 4. Buttons ---------- */
.btn-px {
    --h: 46px;
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: var(--h); padding: 0 22px; border-radius: 14px; border: 1px solid transparent;
    font-family: var(--font-body); font-weight: 600; font-size: .95rem; line-height: 1; white-space: nowrap;
    cursor: pointer; text-decoration: none;
    transition: transform .25s var(--spring), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn-px .bi { font-size: 1.05rem; transition: transform .3s var(--spring); }
.btn-px:hover .bi-arrow-right, .btn-px:hover .bi-arrow-up-right { transform: translateX(3px); }
.btn-px:active { transform: scale(.97); }
.btn-px.btn-sm { --h: 38px; padding: 0 16px; font-size: .875rem; border-radius: 12px; }
.btn-px.btn-lg { --h: 52px; padding: 0 26px; font-size: 1rem; border-radius: 16px; }

.btn-px-primary { color: #fff; background: var(--grad-brand); background-size: 160% 100%; background-position: 0% 0; box-shadow: var(--shadow-glow); }
.btn-px-primary::after { /* light sweep */
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.35) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-px-primary:hover { color: #fff; background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgb(124 92 255 / 0.55); }
.btn-px-primary:hover::after { transform: translateX(120%); }
[data-accent]:not([data-accent="brand"]) .btn-px-primary { background-image: linear-gradient(120deg, var(--acc-a), var(--acc-b)); }

.btn-px-glass {
    color: var(--ink); background: var(--glass-strong); border-color: var(--line);
    box-shadow: var(--shadow-sm); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn-px-glass:hover { color: var(--ink); background: #fff; border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-px-ghost { color: var(--ink); background: transparent; border-color: var(--line-strong); }
.btn-px-ghost:hover { color: var(--ink); background: #fff; }

.btn-px.is-loading { pointer-events: none; opacity: .75; }

.link-px { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.link-px .bi { transition: transform .3s var(--spring); }
.link-px:hover { color: var(--violet); }
.link-px:hover .bi { transform: translateX(4px); }

/* ---------- 5. Header: floating glass bar ---------- */
.px-header { position: sticky; top: 0; z-index: 1030; padding: 12px 0 0; }
.px-nav {
    max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 10px 10px 10px 18px; border-radius: 20px;
    background: rgb(255 255 255 / 0.55); border: 1px solid var(--glass-edge);
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.7) inset, var(--shadow-sm);
    position: relative; isolation: isolate;
    transition: background-color .3s, box-shadow .3s;
}
/* The blur sits on a pseudo layer so the mega menu inside the bar can paint fully opaque
   (a backdrop-filter on the bar itself makes nested glass panels render see-through in Chromium). */
.px-nav::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
}
.px-header .px-nav { margin-left: 16px; margin-right: 16px; }
@media (min-width: 1240px) { .px-header .px-nav { margin-left: auto; margin-right: auto; } }
.px-header[data-scrolled="true"] .px-nav { background: rgb(255 255 255 / 0.78); box-shadow: 0 1px 0 rgb(255 255 255 / 0.7) inset, var(--shadow-md); }
.px-brand img { height: 38px; width: auto; display: block; }
.px-links { display: flex; align-items: center; gap: 2px; }
.px-link {
    display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 12px; border: 0;
    background: transparent; color: var(--ink-2); font-weight: 500; font-size: .95rem; cursor: pointer; transition: background-color .2s, color .2s;
}
.px-link:hover, .px-link[aria-expanded="true"] { background: rgb(15 23 42 / 0.05); color: var(--ink); }
.px-link.active { color: var(--ink); background: #fff; box-shadow: var(--shadow-xs); }
.px-link .bi-chevron-down { font-size: .7rem; transition: transform .25s; }
.px-link[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }
.px-link.dropdown-toggle::after { display: none; }
.px-actions { display: flex; align-items: center; gap: 8px; }

.px-mega {
    width: 560px; padding: 10px; margin-top: 12px !important; border-radius: 20px; border: 1px solid var(--glass-edge);
    background: rgb(255 255 255 / 0.97); box-shadow: var(--shadow-lg);
    -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
}
.px-mega.show { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.px-mega-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 14px; color: var(--ink); transition: background-color .2s; }
.px-mega-item:hover, .px-mega-item.active { background: rgb(15 23 42 / 0.04); color: var(--ink); }
.px-mega-item .t { display: block; font-weight: 600; font-size: .925rem; }
.px-mega-item .d { display: block; font-size: .8125rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.px-mega-item .px-icon { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; font-size: 1.05rem; }
@media (min-width: 992px) and (hover: hover) {
    .px-menu { position: relative; }
    .px-menu:hover > .px-mega, .px-menu:focus-within > .px-mega { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
    .px-menu > .px-mega { top: 100%; left: 50%; transform: translateX(-50%); }
    .px-menu::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
}

.px-burger {
    width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.menu-glyph { width: 18px; height: 18px; fill: currentColor; }
.menu-glyph rect { transform-box: view-box; transform-origin: 8px 8px; transition: transform .3s cubic-bezier(.5,.85,.25,1.1); }
.menu-glyph .b1 { transform: translate(7px, -5px); }
.menu-glyph .b3 { transform: translate(0, 5px); }
[aria-expanded="true"] .menu-glyph .b1 { transform: rotate(315deg); }
[aria-expanded="true"] .menu-glyph .b2 { transform: rotate(45deg); }
[aria-expanded="true"] .menu-glyph .b3 { transform: rotate(135deg); }

.px-mobile { padding: 8px 16px 0; }
.px-mobile-inner {
    max-width: 1180px; margin: 0 auto; padding: 14px; border-radius: 20px; border: 1px solid var(--glass-edge);
    background: rgb(255 255 255 / 0.9); box-shadow: var(--shadow-lg);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    display: grid; gap: 14px;
}
@media (min-width: 576px) { .px-mobile-inner { grid-template-columns: 1fr 1fr; } }
.px-mobile .group-label { margin: 4px 8px 6px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.px-mobile a.m-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; font-weight: 500; color: var(--ink); }
.px-mobile a.m-item:hover, .px-mobile a.m-item.active { background: rgb(15 23 42 / 0.04); }
.px-mobile a.m-item .px-icon { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px; font-size: .95rem; }

/* ---------- 6. Gradient icon tiles ---------- */
.px-icon {
    --a: var(--acc-a); --b: var(--acc-b);
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; flex: 0 0 52px; border-radius: 15px; color: #fff; font-size: 1.35rem;
    background: linear-gradient(135deg, var(--a), var(--b));
    box-shadow: 0 10px 22px -10px var(--a), inset 0 1px 0 rgb(255 255 255 / 0.45), inset 0 -6px 12px rgb(0 0 0 / 0.08);
}
.px-icon::after { /* glossy highlight */
    content: ""; position: absolute; inset: 1px 1px 50% 1px; border-radius: inherit;
    background: linear-gradient(rgb(255 255 255 / 0.35), rgb(255 255 255 / 0));
}
.px-icon .bi { position: relative; z-index: 1; filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.15)); }
.ic-blue   { --a: #3b82f6; --b: #22c3ee; }
.ic-violet { --a: #7c5cff; --b: #4f6bff; }
.ic-mint   { --a: #10b9a0; --b: #3bb2f6; }
.ic-coral  { --a: #f45162; --b: #fb923c; }
.ic-fuchsia{ --a: #d946ef; --b: #7c5cff; }
.ic-sun    { --a: #f59e0b; --b: #f45162; }
/* rotate colours through grids automatically */
.px-cycle > :nth-child(6n+1) .px-icon:not([class*="ic-"]) { --a: #3b82f6; --b: #22c3ee; }
.px-cycle > :nth-child(6n+2) .px-icon:not([class*="ic-"]) { --a: #7c5cff; --b: #4f6bff; }
.px-cycle > :nth-child(6n+3) .px-icon:not([class*="ic-"]) { --a: #10b9a0; --b: #3bb2f6; }
.px-cycle > :nth-child(6n+4) .px-icon:not([class*="ic-"]) { --a: #f45162; --b: #fb923c; }
.px-cycle > :nth-child(6n+5) .px-icon:not([class*="ic-"]) { --a: #d946ef; --b: #7c5cff; }
.px-cycle > :nth-child(6n+6) .px-icon:not([class*="ic-"]) { --a: #f59e0b; --b: #f45162; }

/* ---------- 7. Cards ---------- */
.px-card {
    position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden;
    background: rgb(255 255 255 / 0.78); border: 1px solid var(--glass-edge); border-radius: var(--r-xl);
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.8) inset, var(--shadow-sm);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.px-card::before { /* pointer spotlight (prism.js sets --mx/--my) */
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgb(124 92 255 / 0.10), transparent 45%);
}
.px-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgb(255 255 255 / 0.8) inset, var(--shadow-md); }
.px-card:hover::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .px-card:hover { transform: none; } }
.px-card-body { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; flex: 1; }
@media (min-width: 992px) { .px-card-body { padding: 28px; } }
.px-card .px-icon { margin-bottom: 10px; }
.px-card-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--ink); margin: 0; letter-spacing: -0.015em; }
.px-card-text { font-size: .95rem; color: var(--muted); margin: 0; line-height: 1.65; }
.px-card-foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.px-card a.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.px-card .px-card-foot .link-px { position: relative; z-index: 2; }
.h-auto.px-card { height: auto; }

.px-checks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 9px; }
.px-checks li { position: relative; padding-left: 28px; font-size: .925rem; line-height: 1.55; color: var(--ink-2); }
.px-checks li::before {
    content: "\F633"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 1px;
    width: 19px; height: 19px; border-radius: 999px; font-size: .7rem; display: flex; align-items: center; justify-content: center;
    color: #fff; background: linear-gradient(135deg, var(--acc-a), var(--acc-b));
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li {
    display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; font-size: .85rem; font-weight: 500;
    background: #fff; border: 1px solid var(--line); color: var(--ink-2); box-shadow: var(--shadow-xs);
}

.px-media { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid #fff; }
.px-media img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .6s var(--ease); }
.px-media:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .px-media:hover img { transform: none; } }

.prose p { font-size: 1.05rem; color: var(--ink-2); }
.prose h3 { font-size: 1.15rem; margin: 26px 0 8px; }
.note { margin-top: 18px; padding: 14px 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 500; }

/* ---------- 8. Bento grids ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 992px) { .bento { gap: 20px; } }
.bento > * { min-width: 0; }

/* services bento (home) */
@media (min-width: 768px) {
    .bento-services { grid-template-columns: repeat(2, 1fr); }
    .bento-services .b-rec, .bento-services .b-it { grid-column: span 2; }
    .bento-services .b-cta { order: 1; } .bento-services .b-it { order: 2; }
}
@media (min-width: 1100px) {
    .bento-services { grid-template-columns: repeat(3, 1fr); grid-template-areas: "rec rec pay" "stat lab pay" "it it cta"; }
    .bento-services .b-rec { grid-area: rec; } .bento-services .b-pay { grid-area: pay; }
    .bento-services .b-stat { grid-area: stat; } .bento-services .b-lab { grid-area: lab; }
    .bento-services .b-it { grid-area: it; } .bento-services .b-cta { grid-area: cta; }
}
.b-wide .px-card-body { display: grid; gap: 12px 28px; }
@media (min-width: 768px) {
    .b-wide .px-card-body { grid-template-columns: 1.15fr 1fr; align-items: start; }
    .b-wide .px-card-body > .head { grid-column: 1; }
    .b-wide .px-card-body > .px-checks { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
    .b-wide .px-card-body > .px-card-foot { grid-column: 1; }
}
.b-tall .orb-deco { margin: 8px auto 0; }

/* why bento */
@media (min-width: 768px) {
    .bento-why { grid-template-columns: repeat(2, 1fr); }
    .bento-why .b-img, .bento-why .b-tag { grid-column: span 2; }
}
@media (min-width: 1100px) {
    .bento-why { grid-template-columns: repeat(4, 1fr); grid-template-areas: "img img q1 q2" "img img q3 q4" "tag tag tag tag"; }
    .bento-why .b-img { grid-area: img; } .bento-why .b-q1 { grid-area: q1; } .bento-why .b-q2 { grid-area: q2; }
    .bento-why .b-q3 { grid-area: q3; } .bento-why .b-q4 { grid-area: q4; } .bento-why .b-tag { grid-area: tag; }
}
.bento-why .b-img .px-media { height: 100%; border-width: 0; box-shadow: var(--shadow-md); }
.bento-why .b-img .px-media img { aspect-ratio: auto; min-height: 300px; }

/* about bento */
@media (min-width: 768px) {
    .bento-about { grid-template-columns: repeat(2, 1fr); }
    .bento-about .b-vision, .bento-about .b-journey { grid-column: span 2; }
}
@media (min-width: 1100px) {
    .bento-about { grid-template-columns: repeat(4, 1fr); grid-template-areas: "vis vis s1 s2" "vis vis s3 s4" "jour jour jour jour"; }
    .bento-about .b-vision { grid-area: vis; } .bento-about .b-s1 { grid-area: s1; } .bento-about .b-s2 { grid-area: s2; }
    .bento-about .b-s3 { grid-area: s3; } .bento-about .b-s4 { grid-area: s4; } .bento-about .b-journey { grid-area: jour; }
}

/* contact bento */
.bento-contact { grid-template-columns: 1fr 1fr; gap: 12px; }
.bento-contact .b-map { grid-column: span 2; }

/* gradient feature tile (vision, tagline, CTA) */
.px-tile-grad {
    position: relative; overflow: hidden; color: #fff; border-radius: var(--r-xl); border: 0;
    background:
        radial-gradient(80% 90% at 100% 0%, rgb(244 81 98 / 0.85), transparent 60%),
        radial-gradient(70% 80% at 0% 100%, rgb(34 195 238 / 0.75), transparent 60%),
        linear-gradient(135deg, #3b6cf6, #7c5cff);
    box-shadow: var(--shadow-lg);
}
.px-tile-grad::after { /* grain-free sheen */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(160deg, rgb(255 255 255 / 0.22), transparent 40%);
}
.px-tile-grad .px-card-title, .px-tile-grad h2, .px-tile-grad h3 { color: #fff; }
.px-tile-grad .px-card-text, .px-tile-grad p { color: rgb(255 255 255 / 0.88); }
.px-tile-grad .px-card-body { z-index: 1; }
.px-tile-grad.px-card:hover { box-shadow: var(--shadow-lg); }
.px-tile-grad .highlight { background: none; color: #fff; -webkit-text-fill-color: #fff; text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.5); text-underline-offset: 4px; }
.tag-line { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1.2vw, 1.9rem); font-weight: 600; letter-spacing: -0.02em; margin: 0; }

/* ---------- 9. 3D illustrations (glossy orbs, ring, glass panels) ---------- */
.orb {
    position: absolute; border-radius: 999px; pointer-events: none;
    background: radial-gradient(circle at 32% 28%, rgb(255 255 255 / 0.95) 0 6%, rgb(255 255 255 / 0.35) 14%, transparent 34%),
                radial-gradient(circle at 70% 78%, rgb(0 0 0 / 0.18), transparent 55%),
                linear-gradient(140deg, var(--a, #7c5cff), var(--b, #3b6cf6));
    box-shadow: 0 24px 40px -18px var(--a, #7c5cff), inset -8px -10px 24px rgb(0 0 0 / 0.12);
}
.orb.o-blue { --a: #22c3ee; --b: #3b6cf6; }
.orb.o-violet { --a: #a78bfa; --b: #6d4dff; }
.orb.o-coral { --a: #ff8a9a; --b: #f45162; }
.orb.o-sun { --a: #ffd36e; --b: #f59e0b; }
.orb.o-mint { --a: #5eead4; --b: #10b9a0; }
.orb.o-glass { background: radial-gradient(circle at 30% 25%, rgb(255 255 255 / 0.95) 0 7%, transparent 30%), rgb(255 255 255 / 0.35); border: 1px solid rgb(255 255 255 / 0.8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 20px 40px -20px rgb(40 40 120 / 0.35); }
.ring3d { position: absolute; pointer-events: none; border-radius: 999px; border: 14px solid transparent;
    background: linear-gradient(#fff0, #fff0) padding-box, var(--grad-ring) border-box;
    -webkit-mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
    transform: rotateX(68deg) rotateZ(-18deg); filter: drop-shadow(0 18px 18px rgb(60 50 160 / 0.25)); opacity: .9; }

.illus { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 0.9; margin: 0 auto; perspective: 1200px; }
.illus-stage { position: absolute; inset: 0; transform-style: flat; transition: transform .4s var(--ease); }
.illus .glass-panel {
    position: absolute; border-radius: 22px; padding: 16px; background: rgb(255 255 255 / 0.62); border: 1px solid rgb(255 255 255 / 0.85);
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 30px 60px -24px rgb(40 36 120 / 0.35);
    -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
}
.illus .row-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: rgb(255 255 255 / 0.75); border: 1px solid rgb(15 23 42 / 0.05); }
.illus .row-item + .row-item { margin-top: 10px; }
.illus .row-item .px-icon { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; font-size: .95rem; }
.illus .row-item strong { display: block; font-size: .85rem; color: var(--ink); font-weight: 600; line-height: 1.2; }
.illus .row-item small { display: block; font-size: .72rem; color: var(--muted); }
.illus .row-item .ok { margin-left: auto; width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; color: #fff; background: #10b9a0; box-shadow: 0 6px 12px -6px #10b9a0; }
.illus .bar { height: 8px; border-radius: 99px; background: rgb(15 23 42 / 0.07); overflow: hidden; }
.illus .bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--acc-a), var(--acc-b)); }
.illus .badge-float { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 14px; font-size: .78rem; font-weight: 600; color: var(--ink);
    background: rgb(255 255 255 / 0.85); border: 1px solid rgb(255 255 255 / 0.9); box-shadow: var(--shadow-md); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.illus .badge-float .px-icon { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 8px; font-size: .75rem; }
.illus .big-tile { position: absolute; width: 132px; height: 132px; border-radius: 34px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 3.2rem;
    background: linear-gradient(135deg, var(--acc-a), var(--acc-b));
    box-shadow: 0 30px 50px -20px var(--acc-a), inset 0 2px 0 rgb(255 255 255 / 0.5), inset 0 -14px 24px rgb(0 0 0 / 0.12); }
.illus .big-tile::before { content: ""; position: absolute; inset: 0 0 50% 0; border-radius: 34px 34px 60% 60%; background: linear-gradient(rgb(255 255 255 / 0.35), transparent); }
.illus .big-tile .bi { position: relative; filter: drop-shadow(0 4px 6px rgb(0 0 0 / 0.18)); }
.illus .shadow-floor { position: absolute; left: 18%; right: 18%; bottom: 2%; height: 26px; border-radius: 50%; background: radial-gradient(rgb(40 36 120 / 0.22), transparent 70%); filter: blur(4px); }

.float-a { animation: px-float 7s ease-in-out infinite; }
.float-b { animation: px-float 9s ease-in-out infinite reverse; }
.float-c { animation: px-float 11s ease-in-out infinite; animation-delay: -3s; }
@keyframes px-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -10px, 0); } }
@media (prefers-reduced-motion: reduce) { .float-a, .float-b, .float-c { animation: none; } }

.orb-deco { position: relative; width: 150px; height: 120px; }

/* ---------- 10. Hero ---------- */
.px-hero { padding: 48px 0 56px; }
@media (min-width: 992px) { .px-hero { padding: 72px 0 80px; } }
.px-hero h1 { font-size: clamp(2.3rem, 1.3rem + 3.2vw, 3.7rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; margin: 20px 0 20px; }
.px-hero .lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--ink-2); max-width: 560px; font-weight: 400; }
.px-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.px-hero .trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .9rem; font-weight: 500; }
.px-hero .trust li { display: inline-flex; align-items: center; gap: 8px; }
.px-hero .trust .bi { color: var(--violet); }
@media (max-width: 575.98px) { .px-hero .actions .btn-px { width: 100%; } }

/* service hero (PageBanner) */
.px-page-hero { padding: 32px 0 40px; }
@media (min-width: 992px) { .px-page-hero { padding: 48px 0 56px; } }
.px-page-hero h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; margin: 18px 0 16px; }
.px-page-hero .lead { font-size: 1.1rem; color: var(--ink-2); max-width: 560px; }
.px-page-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.px-crumbs { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 12px; margin: 0; border-radius: 999px; width: fit-content;
    background: var(--glass-strong); border: 1px solid var(--line); font-size: .8125rem; color: var(--muted); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.px-crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.px-crumbs li + li::before { content: "\F285"; font-family: "bootstrap-icons"; font-size: .6rem; opacity: .6; }
.px-crumbs a:hover { color: var(--violet); }
.px-crumbs [aria-current] { color: var(--ink); font-weight: 600; }
@media (max-width: 575.98px) { .px-page-hero .actions .btn-px { width: 100%; } }

/* ---------- 11. Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: step; position: relative; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; } .steps.steps-3 { grid-template-columns: repeat(3, 1fr); } }
.step-num {
    counter-increment: step; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px;
    font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: #fff; margin-bottom: 6px;
    background: linear-gradient(135deg, var(--acc-a), var(--acc-b)); box-shadow: 0 10px 20px -10px var(--acc-a);
}
.step-num::before { content: "0" counter(step); }

/* ---------- 12. Contact & form ---------- */
.contact-tile { display: flex; flex-direction: column; gap: 10px; padding: 20px; height: 100%; }
.contact-tile .label { font-size: .78rem; font-weight: 600; color: var(--muted); }
.contact-tile .value { font-weight: 600; color: var(--ink); line-height: 1.45; word-break: break-word; font-size: .95rem; }
.contact-tile .value a:hover { color: var(--violet); }
.contact-tile .px-icon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; font-size: 1.05rem; margin: 0; }
.map-frame { display: block; width: 100%; height: 240px; border: 0; border-radius: var(--r-lg); }
.b-map .px-card-body { padding: 8px; }

.px-form { padding: 28px 22px; display: block; }
.px-form:hover { transform: none; }
@media (min-width: 768px) { .px-form { padding: 36px; } }
.enquiry-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 650; margin: 0 0 6px; color: var(--ink); }
.enquiry-sub { color: var(--muted); margin: 0 0 22px; }
.form-floating > .form-control, .form-floating > .form-select {
    height: 58px; border-radius: 14px; border: 1px solid var(--line-strong); background-color: rgb(255 255 255 / 0.9); color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
}
.form-floating > label { color: var(--muted); }
.form-floating > .form-control:focus ~ label::after, .form-floating > .form-control:not(:placeholder-shown) ~ label::after,
.form-floating > .form-select ~ label::after, .form-floating > textarea:focus ~ label::after, .form-floating > textarea:not(:placeholder-shown) ~ label::after { background: transparent; }
.form-control:focus, .form-select:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgb(124 92 255 / 0.15); background-color: #fff; }
.form-floating > .form-control-message { height: 150px; resize: vertical; }
.form-control.is-invalid { border-color: #e11d48; background-image: none; }
.invalid-feedback { color: #be123c; font-size: .82rem; }
.form-hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.enquiry-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; margin-bottom: 20px; }
.enquiry-alert .bi { font-size: 1.2rem; line-height: 1.3; }
.enquiry-alert strong { display: block; color: var(--ink); }
.enquiry-alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; } .enquiry-alert-success .bi { color: #059669; }
.enquiry-alert-error { background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; } .enquiry-alert-error .bi { color: #e11d48; }

/* ---------- 13. Labour law: search + accordion ---------- */
.act-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.act-search { position: relative; flex: 1 1 300px; max-width: 460px; }
.act-search .bi { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.act-search input { width: 100%; height: 50px; padding: 0 16px 0 44px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgb(255 255 255 / 0.9); color: var(--ink); box-shadow: var(--shadow-xs); }
.act-search input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgb(124 92 255 / 0.15); }
.act-count { color: var(--muted); font-size: .9rem; font-weight: 500; }
.acts.accordion { display: grid; gap: 12px; }
.acts .accordion-item { border-radius: 18px !important; overflow: hidden; border: 1px solid var(--glass-edge) !important; background: rgb(255 255 255 / 0.78);
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.8) inset, var(--shadow-sm); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.acts .accordion-button { gap: 14px; padding: 18px 20px; background: transparent; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; box-shadow: none !important; }
.acts .accordion-button:not(.collapsed) { background: transparent; color: var(--ink); }
.acts .accordion-button:focus-visible { box-shadow: inset 0 0 0 3px rgb(124 92 255 / 0.3) !important; }
.acts .accordion-button::after {
    content: "\F64D"; font-family: "bootstrap-icons"; background: #fff; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 10px; margin-left: 0;
    display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; color: var(--ink); border: 1px solid var(--line); transition: transform .3s var(--spring);
}
.acts .accordion-button:not(.collapsed)::after { transform: rotate(45deg); background: #fff; }
.acts .act-name { flex: 1; }
.acts .act-year { flex: 0 0 auto; font-family: var(--font-body); font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, var(--acc-a), var(--acc-b)); }
.acts .accordion-body { padding: 0 20px 22px; }
@media (max-width: 575.98px) { .acts .act-year { display: none; } }

/* ---------- 14. CTA band ---------- */
.cta-section { padding: 24px 0 88px; }
.px-cta { padding: 44px 24px; text-align: center; border-radius: var(--r-2xl); }
@media (min-width: 768px) { .px-cta { padding: 72px 48px; } }
.px-cta h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.8rem); font-weight: 700; margin: 16px auto 12px; max-width: 760px; color: #fff; }
.px-cta p { max-width: 620px; margin: 0 auto; font-size: 1.05rem; }
.px-cta .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; position: relative; z-index: 1; }
.px-cta .btn-white { color: var(--ink); background: #fff; box-shadow: 0 12px 30px -12px rgb(0 0 0 / 0.35); }
.px-cta .btn-white:hover { color: var(--ink); transform: translateY(-2px); }
.px-cta .btn-clear { color: #fff; background: rgb(255 255 255 / 0.14); border-color: rgb(255 255 255 / 0.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.px-cta .btn-clear:hover { color: #fff; background: rgb(255 255 255 / 0.22); transform: translateY(-2px); }
.px-cta .px-chip { background: rgb(255 255 255 / 0.16); border-color: rgb(255 255 255 / 0.3); color: #fff; }
.px-cta .px-chip .dot::after { background: transparent; }
.px-cta .orb { opacity: .9; }
@media (max-width: 575.98px) { .px-cta .actions .btn-px { width: 100%; } }

/* ---------- 15. Footer ---------- */
.px-footer { position: relative; overflow: hidden; color: #b8bfdc; background: #0b1026; padding: 64px 0 0; margin-top: 8px; }
.px-footer::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(40% 60% at 10% 0%, rgb(59 108 246 / 0.25), transparent 70%), radial-gradient(35% 55% at 95% 10%, rgb(124 92 255 / 0.22), transparent 70%), radial-gradient(30% 50% at 60% 110%, rgb(244 81 98 / 0.15), transparent 70%); }
.px-footer .container { position: relative; }
.px-footer .f-logo img { height: 40px; width: auto; }
.px-footer .f-about { margin: 18px 0 20px; max-width: 360px; color: #b8bfdc; }
.px-footer h2 { font-family: var(--font-display); font-size: .95rem; font-weight: 600; color: #fff; margin: 0 0 16px; letter-spacing: -0.01em; }
.px-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.px-footer a { color: #b8bfdc; }
.px-footer a:hover { color: #fff; }
.px-footer .f-contact a, .px-footer .f-contact span { display: inline-flex; gap: 10px; align-items: flex-start; }
.px-footer .f-contact a { overflow-wrap: anywhere; min-width: 0; }
.px-footer .f-contact .bi { color: #8fa4ff; margin-top: 2px; }
.px-footer .f-social { display: flex; gap: 10px; }
.px-footer .f-social a { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.1); color: #fff; transition: transform .25s var(--spring), background-color .2s; }
.px-footer .f-social a:hover { background: rgb(255 255 255 / 0.14); transform: translateY(-3px); }
.px-footer .f-bottom { margin-top: 48px; padding: 22px 0; border-top: 1px solid rgb(255 255 255 / 0.08); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .875rem; }
.px-footer .f-bottom p { margin: 0; }
.px-footer .f-bottom .grad-line { font-weight: 600; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; filter: brightness(1.35); }

/* ---------- 16. Back to top ---------- */
.back-to-top { position: fixed; right: 18px; bottom: 18px; z-index: 1020; width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #fff; background: var(--grad-brand); box-shadow: var(--shadow-glow);
    opacity: 0; visibility: hidden; transform: translateY(10px) scale(.9); transition: opacity .25s, visibility .25s, transform .3s var(--spring); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { color: #fff; transform: translateY(-3px); }

/* ---------- 17. Reveal (once, staggered) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 18. Toasts ---------- */
#toast-container > div { opacity: 1; border-radius: 16px; width: 340px; box-shadow: var(--shadow-lg); font-family: var(--font-body); padding: 16px 16px 16px 52px; }
#toast-container > .toast-success { background-color: #0f9f7a; }
#toast-container > .toast-error { background-color: #e11d48; }

/* ---------- 19. Print ---------- */
@media print {
    body::before, body::after, .px-header, .back-to-top, .cta-section, .px-footer, .illus { display: none !important; }
    .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- small-screen tidy-ups for decorative layers ---------- */
@media (max-width: 1099.98px) { .bento-services .orb-deco { display: none; } }
@media (max-width: 767.98px) {
    .b-vision .orb { display: none; }
    .px-cta .orb { opacity: .6; }
    .px-cta .orb.o-glass { display: none; }
}
@media (max-width: 575.98px) {
    .illus .badge-float { display: none; }
}
