/* =========================================================
   InfoStrive design system
   Brand colours come from the logo: deep navy + sky-to-royal blue.
   ========================================================= */

:root,
[data-bs-theme=light] {
    /* Brand */
    --is-navy: #030038;
    --is-navy-2: #0b0f4a;
    --is-blue: #1d4ed8;          /* primary: 6.7:1 on white */
    --is-blue-hover: #1e40af;
    --is-sky: #38bdf8;
    --is-gradient: linear-gradient(135deg, #0e88c9 0%, #2346d8 100%);

    /* Surfaces & text */
    --is-surface: #ffffff;
    --is-surface-alt: #f4f7fc;
    --is-border: #e2e8f0;
    --is-text: #0f172a;
    --is-text-muted: #475569;    /* 7.5:1 on white */
    --is-on-dark: #ffffff;
    --is-on-dark-muted: #c7d2fe;

    /* Typography */
    --is-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --is-fs-hero: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
    --is-fs-h2: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);

    /* Spacing & shape */
    --is-space-section: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
    --is-radius: 1rem;
    --is-radius-sm: .625rem;
    --is-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
    --is-shadow-hover: 0 2px 4px rgba(15, 23, 42, .06), 0 16px 40px rgba(29, 78, 216, .14);
    --is-header-height: 4.5rem;

    /* Bootstrap overrides */
    --bs-body-font-family: var(--is-font);
    --bs-body-color: var(--is-text);
    --bs-body-bg: var(--is-surface);
    --bs-secondary-color: var(--is-text-muted);
    --bs-primary: var(--is-blue);
    --bs-primary-rgb: 29, 78, 216;
    --bs-link-color: var(--is-blue);
    --bs-link-color-rgb: 29, 78, 216;
    --bs-link-hover-color: var(--is-blue-hover);
    --bs-link-hover-color-rgb: 30, 64, 175;
    --bs-border-color: var(--is-border);
}

[data-bs-theme=dark] {
    --is-blue: #60a5fa;          /* lighter primary for dark backgrounds */
    --is-blue-hover: #93c5fd;
    --is-surface: #070a24;
    --is-surface-alt: #0e1335;
    --is-border: #232a55;
    --is-text: #e2e8f0;
    --is-text-muted: #a5b4cf;
    --is-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    --is-shadow-hover: 0 2px 4px rgba(0, 0, 0, .3), 0 16px 40px rgba(56, 189, 248, .12);

    --bs-body-color: var(--is-text);
    --bs-body-bg: var(--is-surface);
    --bs-secondary-color: var(--is-text-muted);
    --bs-primary-rgb: 96, 165, 250;
    --bs-link-color: var(--is-blue);
    --bs-link-color-rgb: 96, 165, 250;
    --bs-link-hover-color: var(--is-blue-hover);
    --bs-link-hover-color-rgb: 147, 197, 253;
    --bs-border-color: var(--is-border);
}

/* ---------- Base ---------- */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--is-font);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--is-text);
}

h1:focus {
    outline: none;
}

/* Anchored sections must not hide under the sticky header. */
[id] {
    scroll-margin-top: calc(var(--is-header-height) + 1rem);
}

:focus-visible {
    outline: 3px solid var(--is-sky);
    outline-offset: 2px;
}

.text-muted-is {
    color: var(--is-text-muted) !important;
}

.text-on-dark-muted {
    color: var(--is-on-dark-muted) !important;
}

.fs-section {
    font-size: var(--is-fs-h2);
}

.label-caps {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--is-text-muted);
}

.skip-link:focus {
    position: fixed;
    top: .75rem;
    left: .75rem;
    z-index: 2000;
    padding: .5rem 1rem;
    border-radius: var(--is-radius-sm);
    background: var(--is-surface);
    color: var(--is-text);
    box-shadow: var(--is-shadow);
}

/* ---------- Buttons ---------- */

.btn {
    --bs-btn-font-weight: 600;
    --bs-btn-padding-x: 1.25rem;
    --bs-btn-padding-y: .625rem;
    --bs-btn-border-radius: 999px;
}

.btn-lg {
    --bs-btn-padding-x: 1.75rem;
    --bs-btn-padding-y: .8rem;
    --bs-btn-font-size: 1.05rem;
}

.btn-primary {
    --bs-btn-bg: #1d4ed8;
    --bs-btn-border-color: #1d4ed8;
    --bs-btn-hover-bg: #1e40af;
    --bs-btn-hover-border-color: #1e40af;
    --bs-btn-active-bg: #1e3a8a;
    --bs-btn-active-border-color: #1e3a8a;
    --bs-btn-disabled-bg: #1d4ed8;
    --bs-btn-disabled-border-color: #1d4ed8;
    --bs-btn-focus-shadow-rgb: 56, 189, 248;
}

.btn-outline-primary {
    --bs-btn-color: var(--is-blue);
    --bs-btn-border-color: var(--is-blue);
    --bs-btn-hover-bg: var(--is-blue);
    --bs-btn-hover-border-color: var(--is-blue);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--is-blue-hover);
    --bs-btn-active-border-color: var(--is-blue-hover);
}

[data-bs-theme=dark] .btn-outline-primary {
    --bs-btn-hover-color: #030038;
}

.btn-light {
    --bs-btn-color: #030038;
}

/* ---------- Header ---------- */

.site-header {
    background: rgba(3, 0, 56, .96);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    min-height: var(--is-header-height);
}

.site-header .navbar {
    min-height: var(--is-header-height);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .02em;
}

.brand:hover {
    color: #fff;
}

.brand-mark {
    width: 36px;
    height: 36px;
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    font-size: 1.15rem;
    text-transform: uppercase;
}

.brand-name small {
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .32em;
    color: var(--is-sky);
}

.site-header .nav-link {
    color: rgba(255, 255, 255, .82);
    font-weight: 500;
    padding: .5rem .85rem !important;
    border-radius: 999px;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.site-header .nav-link.active {
    color: #fff;
    background: rgba(56, 189, 248, .16);
}

.site-header .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    padding: .4rem .65rem;
    font-size: 1.35rem;
    line-height: 1;
}

.theme-toggle {
    color: rgba(255, 255, 255, .85);
    border: 1px solid rgba(255, 255, 255, .2);
    background: transparent;
    border-radius: 999px;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.theme-toggle .bi-sun { display: none; }
[data-bs-theme=dark] .theme-toggle .bi-sun { display: inline-block; }
[data-bs-theme=dark] .theme-toggle .bi-moon-stars { display: none; }

@media (max-width: 991.98px) {
    .site-header .navbar-collapse {
        padding: .75rem 0 1.25rem;
    }

    .site-header .nav-link {
        padding: .7rem 1rem !important;
    }
}

/* ---------- Sections ---------- */

.section {
    padding-block: var(--is-space-section);
}

.section-alt {
    background: var(--is-surface-alt);
}

.section-dark {
    background: var(--is-navy);
    color: var(--is-on-dark);
}

.section-dark h2, .section-dark h3 {
    color: #fff;
}

.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--is-blue);
    margin-bottom: .75rem;
}

.section-dark .eyebrow,
.hero .eyebrow {
    color: var(--is-sky);
}

.section-title h2 {
    font-size: var(--is-fs-h2);
    margin-bottom: .75rem;
}

.section-title p {
    color: var(--is-text-muted);
    font-size: 1.125rem;
    max-width: 44rem;
}

.section-title.text-center p {
    margin-inline: auto;
}

.section-dark .section-title p {
    color: var(--is-on-dark-muted);
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(60rem 30rem at 85% -10%, rgba(14, 136, 201, .45), transparent 60%),
        radial-gradient(40rem 24rem at -10% 110%, rgba(35, 70, 216, .45), transparent 60%),
        var(--is-navy);
    padding-block: clamp(4rem, 3rem + 6vw, 8rem);
}

.hero::after {
    /* subtle grid texture */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000 30%, transparent);
    pointer-events: none;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: #fff;
    font-size: var(--is-fs-hero);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.03em;
}

.hero .lead {
    color: var(--is-on-dark-muted);
    font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem);
    max-width: 40rem;
}

.hero-compact {
    padding-block: clamp(3rem, 2.5rem + 3vw, 5rem);
}

.hero-compact h1 {
    font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.gradient-text {
    background: linear-gradient(90deg, #7dd3fc, #60a5fa 60%, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-visual {
    position: relative;
    max-width: 22rem;
    margin-inline: auto;
}

.hero-visual img {
    width: 100%;
    height: auto;
    border-radius: 2rem;
    box-shadow: 0 30px 80px rgba(14, 136, 201, .35);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.25rem;
    color: var(--is-on-dark-muted);
    font-size: .95rem;
}

.hero-badges i {
    color: var(--is-sky);
    margin-right: .35rem;
}

.breadcrumb-hero {
    --bs-breadcrumb-divider-color: var(--is-on-dark-muted);
    --bs-breadcrumb-item-active-color: var(--is-on-dark-muted);
}

.breadcrumb-hero a {
    color: #fff;
}

/* ---------- Cards ---------- */

.card-is {
    background: var(--is-surface);
    border: 1px solid var(--is-border);
    border-radius: var(--is-radius);
    box-shadow: var(--is-shadow);
    padding: 1.75rem;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.section-alt .card-is {
    background: var(--is-surface);
}

a.card-is,
.card-is.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

a.card-is:hover,
.card-is.card-link:hover,
.card-is.card-link:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--is-shadow-hover);
    border-color: rgba(29, 78, 216, .35);
}

.card-is h3 {
    font-size: 1.2rem;
    margin-bottom: .5rem;
}

.card-is p {
    color: var(--is-text-muted);
    margin-bottom: 0;
}

.icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: .85rem;
    background: var(--is-gradient);
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 20px rgba(35, 70, 216, .25);
}

.card-more {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--is-blue);
}

.card-more i {
    transition: transform .2s ease;
}

a.card-is:hover .card-more i,
.card-link:hover .card-more i {
    transform: translateX(3px);
}

/* Stretched-link cards keep one accessible link per card. */
.card-link {
    position: relative;
}

/* ---------- Government strip ---------- */

.chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    font-size: .9rem;
}

.chip strong {
    color: var(--is-sky);
    font-variant-numeric: tabular-nums;
}

.check-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.check-list li {
    position: relative;
    padding-left: 1.85rem;
    margin-bottom: .6rem;
}

.check-list li::before {
    content: "\F270"; /* bi-check2-circle */
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--is-blue);
}

.section-dark .check-list li::before {
    color: var(--is-sky);
}

/* ---------- CTA banner ---------- */

.cta-banner {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--is-radius) * 1.5);
    background:
        radial-gradient(30rem 16rem at 100% 0, rgba(56, 189, 248, .35), transparent 60%),
        var(--is-gradient);
    color: #fff;
    padding: clamp(2rem, 1.5rem + 3vw, 3.5rem);
}

.cta-banner h2 {
    color: #fff;
    font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
}

.cta-banner p {
    color: rgba(255, 255, 255, .9);
    font-size: 1.1rem;
}

/* ---------- Leadership ---------- */

.avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--is-gradient);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ---------- Services page ---------- */

.service-block + .service-block {
    border-top: 1px solid var(--is-border);
}

.service-block {
    padding-block: 3.5rem;
    scroll-margin-top: 5rem; /* keep the heading clear of the sticky header when jumping to an anchor */
}

@media (min-width: 992px) {
    .service-block-intro {
        position: sticky;
        top: 6rem;
    }
}

/* Dashed underline under each service heading, as on the reference design. */
.service-heading {
    padding-bottom: .75rem;
    border-bottom: 2px dashed var(--is-border);
}

.capability-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}

.capability-grid-single {
    grid-template-columns: 1fr;
}

.capability {
    padding: 1.1rem 1.25rem 1.1rem 1.4rem;
    border: 1px solid var(--is-border);
    border-left: 4px solid var(--is-blue);
    border-radius: var(--is-radius-sm);
    background: var(--is-surface);
}

.capability h3,
.capability h4 {
    font-size: 1.05rem;
    margin-bottom: .35rem;
}

.capability p {
    color: var(--is-text-muted);
    margin: 0;
    font-size: .95rem;
}

/* ---------- Contact ---------- */

.contact-card {
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.contact-card .form-label {
    font-weight: 600;
}

.contact-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-list .icon-tile {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.2rem;
    margin-bottom: 0;
}

/* Honeypot: present in the form for bots, invisible to people. Not display:none, which some bots skip. */
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Careers ---------- */

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.1rem;
    color: var(--is-text-muted);
    font-size: .925rem;
}

.meta i {
    margin-right: .3rem;
}

.badge-soft {
    display: inline-block;
    padding: .3rem .7rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    background: rgba(29, 78, 216, .1);
    color: var(--is-blue);
}

[data-bs-theme=dark] .badge-soft {
    background: rgba(96, 165, 250, .15);
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    border: 2px dashed var(--is-border);
    border-radius: var(--is-radius);
}

.empty-state i {
    font-size: 2.5rem;
    color: var(--is-text-muted);
}

.prose {
    font-size: 1.1rem;
    line-height: 1.75;
    max-width: 46rem;
}

.prose h2 {
    font-size: 1.6rem;
    margin-top: 2.25rem;
}

.prose h3 {
    font-size: 1.3rem;
    margin-top: 1.75rem;
}

.prose ul, .prose ol {
    padding-left: 1.25rem;
}

.prose li {
    margin-bottom: .35rem;
}

.prose pre {
    background: var(--is-surface-alt);
    padding: 1rem;
    border-radius: var(--is-radius-sm);
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--is-radius-sm);
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--is-navy);
    color: var(--is-on-dark-muted);
    padding-top: 4rem;
    font-size: .95rem;
}

.site-footer h2 {
    color: #fff;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 1rem;
}

.site-footer a {
    color: var(--is-on-dark-muted);
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: .55rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--is-blue);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 3rem;
    padding-block: 1.5rem;
    font-size: .875rem;
}

/* ---------- Forms & Blazor defaults ---------- */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #c00000;
}

[data-bs-theme=dark] .validation-message {
    color: #ff8a8a;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ---------- Home: counters (T-62) ---------- */

.counters-band {
    position: relative;
    z-index: 2;
    margin-top: -2.5rem;
}

.counters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--is-border);
    border: 1px solid var(--is-border);
    border-radius: var(--is-radius);
    box-shadow: var(--is-shadow);
    overflow: hidden;
}

@media (min-width: 992px) {
    .counters { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; }
}

/* Two columns on smaller screens: an odd last tile spans the full row instead of leaving a gap. */
@media (max-width: 991.98px) {
    .counter:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

.counter {
    background: var(--is-surface);
    padding: 1.5rem 1.25rem;
    text-align: center;
}

.counter-value {
    display: block;
    font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.1;
    background: var(--is-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-variant-numeric: tabular-nums;
}

.counter-word {
    font-size: clamp(1.6rem, 1.2rem + 1vw, 2.25rem);
    white-space: nowrap;
}

.counter-label {
    display: block;
    margin-top: .35rem;
    color: var(--is-text-muted);
    font-weight: 500;
}

/* ---------- Home: expertise, process, audiences (T-62) ---------- */

.expertise-card p {
    font-size: .95rem;
}

.process-steps {
    display: grid;
    gap: 1.25rem;
    counter-reset: none;
    margin: 0;
}

@media (min-width: 768px) {
    .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
    .process-steps { grid-template-columns: repeat(5, 1fr); }
}

.process-step {
    position: relative;
    background: var(--is-surface);
    border: 1px solid var(--is-border);
    border-radius: var(--is-radius);
    padding: 1.5rem 1.25rem 1.25rem;
    box-shadow: var(--is-shadow);
}

.process-step p {
    color: var(--is-text-muted);
    margin-bottom: 0;
    font-size: .95rem;
}

.process-number {
    position: absolute;
    top: 1rem;
    right: 1.1rem;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--is-border);
}

/* Chips on light sections (the base .chip is styled for the dark government strip). */
.migration-paths .chip {
    background: var(--is-surface);
    border-color: var(--is-border);
    color: var(--is-text);
    font-weight: 500;
    box-shadow: var(--is-shadow);
}

.audience-card {
    height: 100%;
}

.audience-card h3 {
    font-size: 1.35rem;
}

.audience-primary {
    border-color: var(--is-blue);
    box-shadow: var(--is-shadow-hover);
}

/* ---------- Home: animated process banner (T-63) ---------- */

.process-banner {
    position: relative;
    margin: 0;
    max-width: 36rem;
    margin-inline: auto;
}

.process-banner svg,
.process-banner .pb-video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1.4rem;
    box-shadow: 0 30px 80px rgba(14, 136, 201, .3);
}

.process-banner text {
    font-family: var(--is-font);
    font-size: 15px;
    fill: #c7d2fe;
    text-anchor: middle;
}

.pb-panel { fill: rgba(255, 255, 255, .04); stroke: rgba(255, 255, 255, .12); }

.pb-track { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 2; }

.pb-flow {
    fill: none;
    stroke: #38bdf8;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 4 14;
    animation: pb-dash 1.4s linear infinite;
}

.pb-flow-2 { animation-duration: 1.8s; stroke: #7dd3fc; }
.pb-flow-3 { animation-duration: 1.1s; stroke: #a5b4fc; }

.pb-source ellipse, .pb-source rect { fill: #1e2a5a; stroke: #475fa8; stroke-width: 1.5; }
.pb-source rect { stroke: none; }
.pb-source .pb-cap { fill: #2a3a78; }
.pb-band { fill: none; stroke: #475fa8; stroke-width: 1.5; }

.pb-hub rect { filter: drop-shadow(0 10px 24px rgba(14, 136, 201, .45)); }
.pb-ring {
    fill: none;
    stroke: rgba(255, 255, 255, .7);
    stroke-width: 2;
    stroke-dasharray: 6 6;
    transform-box: fill-box;
    transform-origin: center;
    animation: pb-spin 6s linear infinite;
}
.pb-hub-icon { fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.process-banner .pb-hub-title { fill: #fff; font-weight: 700; font-size: 19px; }
.process-banner .pb-hub-sub { fill: #e0f2fe; font-size: 13px; }

.pb-target ellipse, .pb-target rect { fill: url(#pb-target); }
.pb-target .pb-cap { fill: #93c5fd; }
.pb-cloud path { fill: url(#pb-target); }
.pb-lake .pb-layer-1 { fill: #fbbf24; }
.pb-lake .pb-layer-2 { fill: #94a3b8; }
.pb-lake .pb-layer-3 { fill: #b45309; }
.pb-target { animation: pb-glow 3s ease-in-out infinite; }
.process-banner .pb-target text { fill: #fff; font-weight: 600; }

.pb-dash > rect:first-child { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .18); }
.pb-bar {
    fill: #38bdf8;
    transform-box: fill-box;
    transform-origin: bottom;
    animation: pb-bar 2.4s ease-in-out infinite alternate;
}
.pb-bar-2 { animation-delay: -.6s; fill: #60a5fa; }
.pb-bar-3 { animation-delay: -1.2s; fill: #818cf8; }
.pb-bar-4 { animation-delay: -1.8s; fill: #7dd3fc; }

.pb-stage rect {
    fill: rgba(255, 255, 255, .08);
    stroke: rgba(255, 255, 255, .16);
    animation: pb-stage-pill 15s linear infinite both;
}
.process-banner .pb-stage text { fill: #fff; font-weight: 600; font-size: 14.5px; }

.process-banner .pb-caption {
    fill: #fff;
    font-size: 15px;
    opacity: 0;
    animation: pb-caption 15s linear infinite both;
}
.process-banner .pb-caption-static { display: none; fill: #fff; font-size: 15px; }

/* One shared 15 s timeline: stage n is active from 3(n-1) s. Negative delays start each mid-cycle, so no stage shows
   its "active" first frame while waiting for its turn. */
.pb-s2 rect, .pb-caption.pb-s2 { animation-delay: -12s; }
.pb-s3 rect, .pb-caption.pb-s3 { animation-delay: -9s; }
.pb-s4 rect, .pb-caption.pb-s4 { animation-delay: -6s; }
.pb-s5 rect, .pb-caption.pb-s5 { animation-delay: -3s; }

.pb-toggle {
    position: absolute;
    top: .75rem;
    right: .75rem;
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: rgba(3, 0, 56, .6);
    color: #fff;
}

.pb-toggle:hover { background: rgba(3, 0, 56, .85); }
.pb-toggle:focus-visible { outline: 3px solid #7dd3fc; outline-offset: 2px; }

.process-banner.is-paused *,
.process-banner.is-paused *::before {
    animation-play-state: paused !important;
}

@keyframes pb-dash { to { stroke-dashoffset: -36; } }
@keyframes pb-spin { to { transform: rotate(360deg); } }
@keyframes pb-bar { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
@keyframes pb-glow { 50% { opacity: .82; } }
@keyframes pb-stage-pill {
    0%, 19% { fill: #1d4ed8; stroke: #60a5fa; }
    20%, 100% { fill: rgba(255, 255, 255, .08); stroke: rgba(255, 255, 255, .16); }
}
@keyframes pb-caption {
    0% { opacity: 0; }
    3%, 17% { opacity: 1; }
    20%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .process-banner *, .process-banner *::before { animation: none !important; }
    .process-banner .pb-caption { display: none; }
    .process-banner .pb-caption-static { display: inline; }
    .pb-toggle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition: none !important;
    }
}

/* =========================================================
   Admin area
   ========================================================= */

.admin-shell {
    display: flex;
    min-height: 100vh;
    background: var(--is-surface-alt);
}

.admin-sidebar {
    --bs-offcanvas-width: 260px;
    --bs-offcanvas-bg: var(--is-navy);
    background: var(--is-navy);
    color: var(--is-on-dark-muted);
}

@media (min-width: 992px) {
    .admin-sidebar {
        /* Bootstrap's offcanvas-lg makes the background transparent (!important) at this width. */
        background-color: var(--is-navy) !important;
        width: 248px;
        flex-shrink: 0;
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
    }
}

.admin-sidebar .offcanvas-body {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem;
}

.admin-brand {
    margin: 0 .5rem 1.5rem;
}

.admin-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.admin-nav a,
.admin-nav-soon {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .55rem .75rem;
    border-radius: .55rem;
    color: var(--is-on-dark-muted);
    text-decoration: none;
    font-weight: 500;
}

.admin-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.admin-nav a.active {
    color: #fff;
    background: rgba(56, 189, 248, .16);
    box-shadow: inset 3px 0 0 var(--is-sky);
}

.admin-nav-soon {
    opacity: .6;
    cursor: default;
}

.admin-soon {
    margin-left: auto;
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .1rem .45rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .25);
}

.admin-nav-label {
    margin: .5rem .75rem .35rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(199, 210, 254, .7);
}

.admin-badge {
    margin-left: auto;
    min-width: 1.5rem;
    padding: .05rem .45rem;
    border-radius: 999px;
    background: var(--is-sky);
    color: var(--is-navy);
    font-size: .75rem;
    font-weight: 700;
    text-align: center;
}

.admin-sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: grid;
    gap: .35rem;
}

.admin-nav-link-plain {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .4rem .75rem;
    color: var(--is-on-dark-muted);
    text-decoration: none;
    font-weight: 500;
}

.admin-nav-link-plain:hover {
    color: #fff;
}

.admin-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1.5rem;
    background: var(--is-surface);
    border-bottom: 1px solid var(--is-border);
}

.admin-menu-btn {
    font-size: 1.4rem;
    padding: .1rem .5rem;
    color: var(--is-text);
}

.theme-toggle-light {
    color: var(--is-text);
    border-color: var(--is-border);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.admin-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--is-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
}

.admin-main {
    flex: 1;
    padding: 1.5rem;
    max-width: 1400px;
    width: 100%;
}

.admin-main h1 {
    color: var(--is-text);
}

.admin-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.admin-panel {
    background: var(--is-surface);
    border: 1px solid var(--is-border);
    border-radius: var(--is-radius-sm);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.admin-confirm {
    border-color: rgba(220, 38, 38, .45);
}

.admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.admin-filters .form-label {
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: .25rem;
}

.admin-filter-actions {
    display: flex;
    gap: .5rem;
}

.admin-table {
    --bs-table-bg: transparent;
    font-size: .9rem;
    margin-bottom: 0;
}

.admin-table th {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--is-text-muted);
    white-space: nowrap;
}

.admin-table td {
    vertical-align: middle;
}

.cell-truncate {
    display: inline-block;
    max-width: 22rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.admin-pager {
    display: flex;
    justify-content: flex-end;
    margin-top: .5rem;
}

.admin-dot {
    display: inline-block;
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: var(--is-blue);
    margin-right: .35rem;
    vertical-align: middle;
}

.tabular {
    font-variant-numeric: tabular-nums;
}

/* Stat tiles */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.1rem 1.25rem;
    background: var(--is-surface);
    border: 1px solid var(--is-border);
    border-radius: var(--is-radius-sm);
}

.stat-tile-highlight {
    border-left: 4px solid var(--is-blue);
}

.stat-tile:has(.stretched-link):hover {
    border-color: var(--is-blue);
}

.stat-icon {
    color: var(--is-text-muted);
    font-size: 1.1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--is-text);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    color: var(--is-text-muted);
    font-size: .9rem;
}

.stat-note {
    margin-top: .25rem;
    font-size: .75rem;
    color: var(--is-text-muted);
    font-style: italic;
}

/* Visits chart: single series in the brand blue; grid and axis stay recessive. */
.visits-chart {
    margin: 0;
}

.visits-chart svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.vc-grid {
    stroke: var(--is-border);
    stroke-width: 1;
}

.vc-baseline {
    stroke: var(--is-text-muted);
    stroke-width: 1;
    opacity: .5;
}

.vc-axis {
    fill: var(--is-text-muted);
    font-size: 11px;
    font-family: var(--is-font);
}

.vc-bar {
    fill: var(--is-blue);
}

.vc-hit {
    fill: transparent;
}

.vc-col:hover .vc-bar {
    fill: var(--is-blue-hover);
}

.vc-col:hover .vc-hit {
    fill: var(--is-text);
    opacity: .04;
}

.vc-tip {
    display: none;
    pointer-events: none;
}

.vc-col:hover .vc-tip {
    display: inline;
}

.vc-tip rect {
    fill: var(--is-text);
}

.vc-tip text {
    fill: var(--is-surface);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--is-font);
}

/* Top-N tables with a thin single-hue bar under each name */
.rank-table td:first-child {
    position: relative;
    max-width: 0;
    width: 100%;
}

.rank-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-bar {
    display: block;
    height: 4px;
    margin-top: .3rem;
    border-radius: 0 2px 2px 0;
    background: var(--is-blue);
    opacity: .55;
}

.recent-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem 0;
    border-bottom: 1px solid var(--is-border);
}

.recent-list li:last-child {
    border-bottom: 0;
}

/* Contact messages */
.message-list li + li {
    border-top: 1px solid var(--is-border);
}

.message-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: .75rem 1rem;
    background: none;
    border: 0;
    color: inherit;
}

.message-item:hover {
    background: var(--is-surface-alt);
}

.message-item.active {
    background: rgba(29, 78, 216, .08);
    box-shadow: inset 3px 0 0 var(--is-blue);
}

.message-item.unread {
    font-weight: 600;
}

.message-meta {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: .35rem 1rem;
    font-size: .9rem;
}

.message-meta dt {
    color: var(--is-text-muted);
    font-weight: 600;
}

.message-meta dd {
    margin: 0;
}

.message-body {
    white-space: pre-wrap;
    padding: 1rem;
    background: var(--is-surface-alt);
    border-radius: var(--is-radius-sm);
    border-left: 4px solid var(--is-blue);
}

/* QuickGrid pager */
.admin-pager .paginator {
    gap: .5rem;
    font-size: .85rem;
}

/* =========================================================
   Client portal + tickets
   ========================================================= */

.portal-header {
    background: var(--is-navy);
    color: var(--is-on-dark-muted);
    position: sticky;
    top: 0;
    z-index: 20;
}

.portal-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: .85rem;
}

.portal-account {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
}

.portal-client {
    color: var(--is-on-dark-muted);
}

.portal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    list-style: none;
    margin: 0;
    padding: 0 0 .6rem;
}

.portal-nav a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .9rem;
    border-radius: 999px;
    color: var(--is-on-dark-muted);
    text-decoration: none;
    font-weight: 500;
}

.portal-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.portal-nav a.active {
    color: #fff;
    background: rgba(56, 189, 248, .18);
}

.portal-nav a.portal-nav-cta {
    background: var(--is-blue);
    color: #fff;
}

[data-bs-theme=dark] .portal-nav a.portal-nav-cta {
    background: #1d4ed8;
}

.portal-main {
    flex: 1 0 auto;
    padding-block: 2rem 3rem;
    background: var(--is-surface-alt);
}

.portal-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.portal-footer {
    background: var(--is-surface);
    border-top: 1px solid var(--is-border);
    padding-block: 1rem;
    color: var(--is-text-muted);
}

.contract-card h3 a {
    text-decoration: none;
}

.contract-card h3 a:hover {
    text-decoration: underline;
}

/* Priority badges: distinct from the reserved status colours, always with icon + text */
.badge-priority-critical { background: #7f1d1d; color: #fff; }
.badge-priority-high { background: #c2410c; color: #fff; }
.badge-priority-medium { background: rgba(29, 78, 216, .12); color: var(--is-blue); }
.badge-priority-low { background: var(--is-surface-alt); color: var(--is-text-muted); border: 1px solid var(--is-border); }

.hours-warning {
    color: #b45309;
}

[data-bs-theme=dark] .hours-warning {
    color: #fbbf24;
}

/* Ticket conversation */
.ticket-thread > li + li {
    margin-top: .9rem;
}

.thread-item {
    padding: .85rem 1rem;
    border: 1px solid var(--is-border);
    border-radius: var(--is-radius-sm);
    background: var(--is-surface);
}

.thread-staff {
    border-left: 4px solid var(--is-blue);
}

.thread-internal {
    border: 1px dashed #b45309;
    background: rgba(245, 158, 11, .08);
}

.thread-head {
    font-size: .85rem;
    color: var(--is-text-muted);
    margin-bottom: .35rem;
}

.thread-head strong {
    color: var(--is-text);
}

.thread-body {
    white-space: pre-wrap;
}

.thread-event {
    font-size: .85rem;
    padding-left: .25rem;
    color: var(--is-text);
}

.thread-event i {
    color: var(--is-blue);
    margin-right: .35rem;
}

.prose-sm {
    font-size: 1rem;
    max-width: none;
}

.prose-sm h2 {
    font-size: 1.15rem;
    margin-top: 1rem;
}
