:root {
    --qv-navy: #081f4a;
    --qv-blue: #0f4da8;
    --qv-cyan: #14a3d8;
    --qv-accent: #ff8f2a;
    --qv-bg: #f3f7fb;
    --qv-text: #1f2a3a;
}

.public-body {
    background: var(--qv-bg);
    color: var(--qv-text);
}

.public-header {
    background: #fff;
    box-shadow: 0 6px 24px rgba(10, 23, 52, 0.08);
}

.public-utility-bar {
    background: var(--qv-navy);
    color: #c8daff;
    font-size: 0.78rem;
    padding: 0.35rem 0;
}

.tracking-wide {
    letter-spacing: 0.06em;
}

.utility-link {
    color: #dbe8ff;
    text-decoration: none;
}

.utility-link:hover {
    color: #fff;
}

.public-main-nav {
    padding: 0.7rem 0;
}

.brand-wordmark {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.brand-mark {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--qv-blue), var(--qv-cyan));
    color: #fff;
    font-weight: 800;
    margin-right: 0.55rem;
}

.brand-name {
    color: var(--qv-navy);
}

.topbar .admin-brand-wordmark {
    text-decoration: none;
    padding-left: 0.45rem;
}

.topbar .admin-brand-wordmark .brand-mark {
    width: 1.9rem;
    height: 1.9rem;
    margin-right: 0.5rem;
}

.topbar .admin-brand-wordmark .brand-name {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.topbar .admin-brand-wordmark:hover .brand-name,
.topbar .admin-brand-wordmark:focus .brand-name {
    color: #fff;
}

.public-main-nav .nav-link {
    color: #25334f;
    font-weight: 600;
    padding: 0.55rem 0.8rem;
}

.public-main-nav .nav-link:hover {
    color: var(--qv-blue);
}

.dropdown-menu-lg {
    min-width: 15.5rem;
    border: 1px solid #e4ecf9;
    box-shadow: 0 14px 30px rgba(5, 24, 54, 0.12);
}

.dropdown-menu-lg .dropdown-item {
    padding: 0.5rem 0.9rem;
    font-weight: 500;
}

.dropdown-menu-lg .dropdown-item:hover {
    background: #f0f6ff;
    color: var(--qv-blue);
}

.public-nav-actions {
    margin-top: 0.75rem;
}

.btn-brand {
    background: linear-gradient(135deg, var(--qv-blue), var(--qv-cyan));
    border: 0;
    color: #fff;
    box-shadow: 0 10px 20px rgba(18, 117, 196, 0.25);
}

.btn-brand:hover {
    color: #fff;
    filter: brightness(1.03);
}

.btn-outline-brand {
    border: 1px solid #c7daf5;
    color: var(--qv-blue);
    background: #fff;
}

.btn-outline-brand:hover {
    background: #edf4ff;
    color: var(--qv-blue);
}

.homepage-hero {
    position: relative;
}

.hero-slide {
    min-height: clamp(560px, 72vh, 760px);
    position: relative;
    background-size: cover;
    background-position: center;
}

.hero-slide-1 {
    background-image: linear-gradient(115deg, rgba(5, 23, 58, 0.88), rgba(11, 56, 118, 0.62)), url('https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=1800&q=80');
}

.hero-slide-2 {
    background-image: linear-gradient(115deg, rgba(8, 22, 52, 0.9), rgba(24, 90, 140, 0.58)), url('https://images.unsplash.com/photo-1529139574466-a303027c1d8b?auto=format&fit=crop&w=1800&q=80');
}

.hero-slide-3 {
    background-image: linear-gradient(115deg, rgba(7, 24, 54, 0.9), rgba(22, 94, 130, 0.52)), url('https://images.unsplash.com/photo-1523381210434-271e8be1f52b?auto=format&fit=crop&w=1800&q=80');
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 15%, rgba(255, 143, 42, 0.18), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.py-lg-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.hero-tag {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-metrics-card,
.hero-quote-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 1rem;
    padding: 1.1rem;
    backdrop-filter: blur(4px);
}

.hero-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.9rem;
}

.hero-kpi-grid div {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0.75rem;
    padding: 0.6rem;
}

.hero-kpi-grid strong {
    display: block;
    font-size: 1.1rem;
}

.hero-kpi-grid span {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.88);
}

.hero-points li {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    padding: 0.55rem 0;
}

.hero-points li:last-child {
    border-bottom: 0;
}

.carousel-control-next,
.carousel-control-prev {
    width: 5%;
}

.trusted-strip {
    background: #fff;
    border-bottom: 1px solid #e6edf8;
}

.trusted-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.7rem;
}

.trusted-grid span {
    border: 1px solid #e0e9f8;
    border-radius: 0.6rem;
    padding: 0.65rem 0.5rem;
    text-align: center;
    font-weight: 600;
    color: #33507d;
    background: #f9fbff;
}

.section-head h2 {
    color: var(--qv-navy);
}

.service-card {
    background: #fff;
    border: 1px solid #dfebfa;
    border-radius: 0.9rem;
    padding: 1.2rem;
    box-shadow: 0 14px 26px rgba(6, 28, 64, 0.08);
}

.service-card h5 {
    color: var(--qv-navy);
    margin-bottom: 0.55rem;
}

.service-card p {
    margin: 0;
    color: #536687;
}

.industry-section {
    background: linear-gradient(180deg, #f1f7ff 0%, #ffffff 100%);
}

.section-eyebrow {
    color: var(--qv-blue);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.check-list li {
    margin-bottom: 0.55rem;
    position: relative;
    padding-left: 1.25rem;
    color: #40597c;
}

.check-list li::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0.53rem;
    background: var(--qv-accent);
}

.video-teaser-card {
    background: linear-gradient(140deg, #0b2f69, #1365b0);
    border-radius: 1rem;
    color: #fff;
    padding: 1.4rem;
    box-shadow: 0 18px 28px rgba(8, 34, 72, 0.25);
}

.video-play-btn {
    border: 0;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    background: #fff;
    color: #0b4c97;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.step-card {
    background: #fff;
    border: 1px solid #dfebfa;
    border-radius: 0.85rem;
    padding: 1rem;
}

.step-card span {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #e8f2ff;
    color: #0d56a8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.step-card h6 {
    color: var(--qv-navy);
}

.step-card p {
    color: #566a89;
    margin-bottom: 0;
}

.website-cta {
    background: linear-gradient(90deg, #08295f, #1485ca);
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.86) !important;
}

.public-inner-hero {
    background: linear-gradient(180deg, #f3f8ff 0%, #ffffff 100%);
    border-bottom: 1px solid #e4ecf8;
}

.hero-kicker {
    display: inline-block;
    border-radius: 999px;
    padding: 0.42rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    background: #e8f2ff;
    color: #145ab1;
}

.feature-card {
    background: #fff;
    border: 1px solid #e2ebfa;
    border-radius: 0.95rem;
    padding: 1.25rem;
    box-shadow: 0 12px 26px rgba(9, 33, 68, 0.07);
}

.mission-card {
    border-left: 4px solid #1784df;
}

.contact-form-card {
    border: 1px solid #dce8f8;
}

.softlines-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    color: #30445f;
}

.softlines-list li::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #1980df;
    position: absolute;
    left: 0;
    top: 0.52rem;
}

.page-content p {
    font-size: 1.04rem;
    line-height: 1.78;
    color: #3b4e6a;
}

.public-footer {
    background: #071b3f;
    color: #d2dfff;
}

.public-footer h5,
.public-footer h6 {
    color: #fff;
}

.footer-links li {
    margin-bottom: 0.45rem;
}

.footer-links a {
    color: #d2dfff;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

.text-footer-muted {
    color: #9eb4de;
}

.footer-separator {
    border-color: rgba(255, 255, 255, 0.14);
    margin-top: 1.2rem;
    margin-bottom: 1rem;
}

.auth-wide-card {
    width: 520px;
    max-width: 96%;
}

.page-wrapper .container-fluid {
    padding-top: 1rem;
}

.table td,
.table th {
    vertical-align: middle;
}

.footer {
    position: relative;
    border-top: 1px solid #eef2f7;
    background: #fff;
}

.page-wrapper > .footer {
    left: 0 !important;
    width: 100% !important;
    margin-left: 0 !important;
}

.footer .container-fluid {
    min-height: 48px;
    align-items: center;
    padding-left: 1rem;
    padding-right: 1rem;
}

.auth-language-switch {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1080;
}

.select2-container .select2-selection--single {
    height: 36px !important;
    border: 1px solid #d9e2ef !important;
    border-radius: 0.25rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 34px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 34px !important;
}

.assignment-grid-wrap {
    max-height: 230px;
    overflow: auto;
}

#notificationList a {
    align-items: flex-start;
}

.inspection-workflow-card {
    border: 0;
    box-shadow: 0 14px 36px rgba(15, 30, 66, 0.08);
}

.inspection-progress-pill {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: #eaf3ff;
    color: #1458a6;
    font-weight: 600;
    font-size: 0.85rem;
}

.inspection-workflow {
    position: relative;
}

.inspection-workflow-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #edf2f9;
    overflow: hidden;
}

.inspection-workflow-bar span {
    display: block;
    height: 8px;
    width: 0;
    background: linear-gradient(90deg, #2f8ef7, #2cc5b9);
    transition: width 0.25s ease;
}

.inspection-workflow-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 0.9rem;
}

.workflow-step {
    appearance: none;
    border: 1px solid #e6edf8;
    background: #fff;
    cursor: pointer;
    border-radius: 0.65rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #5c6e88;
    text-align: center;
}

.workflow-step.active {
    border-color: #2f8ef7;
    color: #2f8ef7;
    background: #f4f9ff;
}

.workflow-step.complete {
    border-color: #15a97b;
    color: #15a97b;
    background: #edf9f4;
}

.wizard-step-pane {
    animation: fadeWizard 0.2s ease;
}

@keyframes fadeWizard {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.inspection-create-card {
    border: 1px solid #d7e7ff;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.po-chip {
    border-color: #dde8f7 !important;
    background: #fbfdff;
}

.quvaliant-toast-host {
    position: fixed;
    right: 1rem;
    top: 5.25rem;
    z-index: 1085;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: min(92vw, 420px);
}

.quvaliant-toast-host .toast {
    width: 100%;
    box-shadow: 0 12px 32px rgba(9, 19, 37, 0.24);
    opacity: 1;
    border-radius: 0.75rem;
    overflow: hidden;
}

.quvaliant-toast {
    border: 1px solid #dbe7f6 !important;
    background: #fff;
}

.quvaliant-toast .toast-body {
    padding: 0.8rem 0.85rem;
}

.quvaliant-toast-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.7rem;
    font-size: 0.9rem;
}

.quvaliant-toast-title {
    font-weight: 700;
    color: #0f2342;
    line-height: 1.25rem;
}

.quvaliant-toast-message {
    color: #51627c;
    font-size: 0.86rem;
    margin-top: 0.1rem;
    line-height: 1.2rem;
}

.qv-toast-success .quvaliant-toast-icon {
    background: #e7f8ef;
    color: #0f9f63;
}

.qv-toast-error .quvaliant-toast-icon {
    background: #ffe9eb;
    color: #e04556;
}

.qv-toast-info .quvaliant-toast-icon {
    background: #e8f2ff;
    color: #1878e8;
}

.quvaliant-toast .close {
    margin-left: 0.55rem;
    color: #6c7b94;
    opacity: 0.75;
}

.quvaliant-toast .close:hover {
    opacity: 1;
}

@media (max-width: 991px) {
    .public-utility-bar {
        display: none !important;
    }

    .trusted-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-slide {
        min-height: 580px;
    }

    .public-main-nav .nav-link {
        padding-left: 0.2rem;
        padding-right: 0.2rem;
    }

    .inspection-workflow-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-nav-actions {
        margin-top: 1rem;
        margin-bottom: 0.4rem;
    }

    .quvaliant-toast-host {
        right: 0.75rem;
        left: 0.75rem;
        top: auto;
        bottom: 0.75rem;
        max-width: none;
    }

    .py-lg-6 {
        padding-top: 2.8rem !important;
        padding-bottom: 2.8rem !important;
    }
}

@media (max-width: 767px) {
    .topbar .admin-brand-wordmark {
        padding-left: 0.2rem;
    }

    .topbar .admin-brand-wordmark .brand-name {
        display: none;
    }

    .topbar .top-navbar .navbar-nav .nav-toggler {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-width: 40px;
    }

    .topbar .top-navbar .navbar-nav .nav-toggler i {
        font-size: 20px;
        color: #fff;
    }
}
