/* =====================================================================
   Vulnerability Assessment page (/vulnerability_assessment.html)
   Loaded only by src/pages/vulnerability_assessment.astro. Every rule is scoped to .VaPage (or to the header
   while this page is open), so nothing here reaches other pages. Shared site classes (TitleTag,
   SideHeadingMain…) come from style.css; this file adds the page's sections in the same visual language.

   Note: style.css sets `section { padding: 0 0 70px !important }`, so section padding here is !important too.
   ===================================================================== */

.VaPage {
    --va-ink: #151515;
    --va-text: #2b2b2b;
    --va-muted: #5f6670;
    --va-line: #e3e8ee;
    --va-surface: #f0f5fb;       /* the site's light-blue section background */
    --va-lime: #dfff4d;          /* the site's lime buttons */
    --va-lime-soft: #f5fbe7;     /* the site's lime card hover */
    --va-night: #05070c;         /* hero / dark sections, matches the hero photo */
    --va-dark-card: #101216;
    --va-ease: cubic-bezier(.22, .7, .2, 1);
    display: block;
    overflow-x: clip;
    font-family: "Inter", sans-serif;
}

/* The header (outside .VaPage, but this file loads only on this page): over the dark hero the phone menu
   button needs a light icon, until the header turns white (on scroll, or while a menu is open) */
.CustomNavbar:not(.scrolled):not(.MenuOpen) .navbar-toggler {
    border-color: rgba(255, 255, 255, .35);
}

.CustomNavbar:not(.scrolled):not(.MenuOpen) .navbar-toggler-icon {
    filter: invert(1);
}


/* ---------- Shared bits ---------- */

.VaPage section {
    position: relative;
}

.VaPage .VaSectionHead {
    margin-bottom: 48px;
}

.VaPage .VaSectionHead.text-center {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.VaPage .VaSectionHead .SideHeadingMain {
    margin: 14px 0 0;
    font-size: clamp(32px, 3.4vw, 50px);
}

.VaPage .VaSectionHead.text-center .SideHeadingMain {
    margin-left: auto;
    margin-right: auto;
}

.VaPage .VaLead {
    margin: 0;
    color: var(--va-text);
    font-size: 18px;
    font-weight: 300;
    line-height: 1.65;
}

.VaPage .VaCardTitle {
    margin: 0 0 12px;
    color: var(--va-ink);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

/* Buttons */
.VaPage .VaBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.VaPage .VaBtn i {
    transition: transform .3s var(--va-ease);
}

.VaPage .VaBtn:hover i {
    transform: translateX(4px);
}

.VaPage .VaBtnLime {
    background: var(--va-lime);
    color: #000;
}

.VaPage .VaBtnLime:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 10px 30px rgba(223, 255, 77, .25);
}

.VaPage .VaBtnLight {
    background: #fff;
    color: #000;
}

.VaPage .VaBtnLight:hover {
    background: var(--va-lime);
    color: #000;
}

.VaPage .VaBtnOutline {
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
}

.VaPage .VaBtnOutline:hover {
    border-color: #fff;
    background: #fff;
    color: #000;
}

.VaPage .VaBtn:focus-visible {
    outline: 2px solid var(--va-lime);
    outline-offset: 3px;
}

/* Check-mark list */
.VaPage .VaChecklist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.VaPage .VaChecklist li {
    position: relative;
    margin: 0 0 12px;
    padding: 0 0 0 30px;
    color: var(--va-muted);
    font-size: 15.5px;
    line-height: 1.6;
}

.VaPage .VaChecklist li:last-child {
    margin-bottom: 0;
}

.VaPage .VaChecklist li strong {
    color: var(--va-ink);
    font-weight: 600;
}

.VaPage .VaChecklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .22em;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--va-lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}


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

.VaPage .VaHero {
    padding: 160px 0 130px !important;
    color: #fff;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(5, 7, 12, .55) 0%, rgba(5, 7, 12, .45) 40%, rgba(5, 7, 12, .9) 78%, var(--va-night) 100%),
        url("/images/va-bnr-hero.webp") center top / cover no-repeat,
        var(--va-night);
}

/* A size container, so the heading can be sized to its width (cqi) */
.VaPage .VaHeroContent {
    max-width: 900px;
    margin: 0 auto;
    container-type: inline-size;
}

.VaPage .VaHeroLogo {
    display: block;
    width: 150px;
    height: auto;
    margin: 0 auto;
}

/* h1: .VaPage + class, so it wins over the site's phone rule (h1 45px !important).
   Always one line: never wider than its column (the heading is 11.09px wide per 1px of font size,
   so 8.8cqi is just under the fit) */
.VaPage .VaHeroTitle {
    margin: 24px 0 14px;
    color: #fff;
    white-space: nowrap;
    font-size: min(clamp(44px, 5.6vw, 84px), 8.8cqi) !important;
    line-height: 1.02;
    letter-spacing: -0.025em;
}

.VaPage .VaHeroSubtitle {
    max-width: 720px;
    margin: 0 auto 36px;
    color: rgba(255, 255, 255, .85);
    font-size: clamp(19px, 1.6vw, 26px);
    font-weight: 300;
    line-height: 1.4;
    text-wrap: balance;
}

.VaPage .VaHeroActions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* ---------- Elements of the IT Environment ---------- */

/* A white sheet sliding over the bottom of the dark hero */
.VaPage .VaElements {
    z-index: 1;
    margin-top: -48px;
    padding: 110px 0 100px !important;
    border-radius: 48px 48px 0 0;
    background: #fff;
}

.VaPage .VaElementCard {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: var(--va-surface);
    transition: transform .35s var(--va-ease), background-color .35s ease;
}

.VaPage .VaElementCard:hover {
    transform: translateY(-4px);
    background: var(--va-lime-soft);
}

.VaPage .VaElementImg {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
    object-position: center 30%;
}

.VaPage .VaElementBody {
    padding: 28px 30px 32px;
}

.VaPage .VaElementCard--dark {
    background: #000;
}

.VaPage .VaElementCard--dark:hover {
    background: #111;
}

/* The laptop is a cut-out: show it whole on the dark card */
.VaPage .VaElementCard--dark .VaElementImg {
    object-fit: contain;
    padding: 26px 30px 0;
}

.VaPage .VaElementCard--dark .VaCardTitle,
.VaPage .VaElementCard--dark .VaChecklist li strong {
    color: #fff;
}

.VaPage .VaElementCard--dark .VaChecklist li {
    color: rgba(255, 255, 255, .75);
}


/* ---------- Assessment Methods (dark) ---------- */

.VaPage .VaMethods {
    padding: 100px 0 !important;
    color: #fff;
    background:
        radial-gradient(45% 55% at 85% 0%, rgba(223, 255, 77, .07), transparent 70%),
        var(--va-night);
}

.VaPage .VaMethods .SideHeadingMain {
    color: #fff;
}

.VaPage .VaMethods .VaLead {
    color: rgba(255, 255, 255, .75);
}

.VaPage .VaMethodCard {
    position: relative;
    height: 100%;
    padding: 34px 36px 38px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 24px;
    background: var(--va-dark-card);
    transition: transform .35s var(--va-ease), border-color .35s ease;
}

.VaPage .VaMethodCard:hover {
    transform: translateY(-4px);
    border-color: rgba(223, 255, 77, .45);
}

/* Illustration (cut-out) in the top-right corner */
.VaPage .VaMethodImg {
    display: block;
    height: 150px;
    width: auto;
    max-width: 60%;
    margin: -6px -10px 10px auto;
    object-fit: contain;
}

.VaPage .VaMethodNum {
    display: block;
    margin-bottom: 10px;
    color: var(--va-lime);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .12em;
}

.VaPage .VaMethodCard .VaCardTitle {
    color: #fff;
    font-size: 26px;
}

.VaPage .VaMethodCard p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 15.5px;
    line-height: 1.75;
}

.VaPage .VaMethodCard--lime {
    border-color: transparent;
    background: var(--va-lime);
}

.VaPage .VaMethodCard--lime:hover {
    border-color: transparent;
}

.VaPage .VaMethodCard--lime .VaMethodNum,
.VaPage .VaMethodCard--lime .VaCardTitle {
    color: #000;
}

.VaPage .VaMethodCard--lime p {
    color: #2b2f1a;
}


/* ---------- Step-by-Step Vulnerability Management ---------- */

.VaPage .VaSteps {
    padding: 100px 0 !important;
    background: var(--va-surface);
}

.VaPage .VaTimeline {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* The line joining the step numbers */
.VaPage .VaTimeline::before {
    content: "";
    position: absolute;
    left: 25px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: linear-gradient(var(--va-ink), rgba(21, 21, 21, .12));
}

.VaPage .VaTimelineItem {
    position: relative;
    display: flex;
    gap: 22px;
    margin: 0 0 16px;
    padding: 0;
    background: none;
}

.VaPage .VaTimelineItem:last-child {
    margin-bottom: 0;
}

.VaPage .VaTimelineNum {
    position: relative;
    z-index: 1;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #000;
    color: var(--va-lime);
    font-size: 18px;
    font-weight: 600;
    transition: background-color .3s ease, color .3s ease;
}

.VaPage .VaTimelineBody {
    flex: 1;
    padding: 22px 26px;
    border-radius: 18px;
    background: #fff;
    transition: background-color .3s ease, transform .35s var(--va-ease);
}

.VaPage .VaTimelineBody .VaCardTitle {
    font-size: 20px;
    margin-bottom: 8px;
}

.VaPage .VaTimelineBody p {
    margin: 0;
    color: var(--va-muted);
    font-size: 15.5px;
    line-height: 1.65;
}

.VaPage .VaTimelineItem:hover .VaTimelineNum {
    background: var(--va-lime);
    color: #000;
}

.VaPage .VaTimelineItem:hover .VaTimelineBody {
    background: var(--va-lime-soft);
    transform: translateX(4px);
}

/* The cycle: dark panel with the shield artwork (made for dark backgrounds) */
.VaPage .VaCyclePanel {
    overflow: hidden;
    padding: 0 26px 26px;
    border-radius: 24px;
    background:
        radial-gradient(70% 45% at 50% 22%, rgba(30, 120, 255, .18), transparent 70%),
        var(--va-night);
}

.VaPage .VaCycleImg {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 0 auto -10px;
}

.VaPage .VaCycle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.VaPage .VaCycle li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
    line-height: 1.35;
}

.VaPage .VaCycle li span {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--va-lime);
    color: #000;
    font-size: 13px;
    font-weight: 700;
}


/* ---------- Threats ---------- */

.VaPage .VaThreats {
    padding: 100px 0 !important;
    background: #fff;
}

.VaPage .VaThreatGrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.VaPage .VaThreat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 30px 18px 26px;
    border-radius: 20px;
    background: var(--va-surface);
    color: var(--va-ink);
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    transition: transform .35s var(--va-ease), background-color .35s ease;
}

.VaPage .VaThreat img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.VaPage .VaThreat:hover {
    transform: translateY(-4px);
    background: var(--va-lime-soft);
}


/* ---------- Network Vulnerability Assessment Methods ---------- */

.VaPage .VaNetwork {
    padding: 100px 0 !important;
    background: var(--va-surface);
}

.VaPage .VaBoxCard {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    transition: transform .35s var(--va-ease), box-shadow .35s ease;
}

.VaPage .VaBoxCard:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(16, 24, 40, .08);
}

.VaPage .VaBoxImg {
    display: block;
    width: 100%;
    aspect-ratio: 464 / 253;
    object-fit: cover;
}

.VaPage .VaBoxBody {
    padding: 26px 30px 32px;
}

.VaPage .VaBoxBody p {
    margin: 0;
    color: var(--va-muted);
    font-size: 15.5px;
    line-height: 1.7;
}

/* Small colour swatch next to each method name: black, white, grey box */
.VaPage .VaBoxSwatch {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-bottom: 14px;
    border-radius: 5px;
}

.VaPage .VaBoxSwatch--black {
    background: #000;
}

.VaPage .VaBoxSwatch--white {
    background: #fff;
    box-shadow: inset 0 0 0 1.5px #c4cad3;
}

.VaPage .VaBoxSwatch--gray {
    background: #9aa1aa;
}


/* ---------- Costs ---------- */

.VaPage .VaCosts {
    padding: 100px 0 110px !important;
    background: #fff;
}

.VaPage .VaCostCard {
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    color: #fff;
}

.VaPage .VaCostBody {
    height: 100%;
    padding: 56px 56px 52px;
}

.VaPage .VaCostTitle {
    margin: 14px 0 16px;
    color: #fff;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.015em;
}

.VaPage .VaCostLead {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, .78);
    font-size: 17px;
    line-height: 1.6;
}

.VaPage .VaCostLead strong {
    color: var(--va-lime);
    font-weight: 600;
}

.VaPage .VaCostBody .VaChecklist li {
    color: rgba(255, 255, 255, .82);
}

.VaPage .VaCostActions {
    justify-content: flex-start;
    margin-top: 34px;
}

.VaPage .VaCostVisual {
    height: 100%;
    min-height: 320px;
}

.VaPage .VaCostVisual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
    .VaPage * {
        transition: none !important;
    }

    .VaPage .VaElementCard:hover,
    .VaPage .VaMethodCard:hover,
    .VaPage .VaThreat:hover,
    .VaPage .VaBoxCard:hover,
    .VaPage .VaTimelineItem:hover .VaTimelineBody {
        transform: none;
    }
}


/* ---------- Desktop ---------- */

@media (min-width: 992px) {
    /* Hero fills the first screen, content centred */
    .VaPage .VaHero {
        display: flex;
        align-items: center;
        min-height: 100vh;
        padding: 140px 0 120px !important;
    }

    .VaPage .VaHero > .container {
        width: 100%;
    }

    /* The cycle panel stays in view while the steps scroll past */
    .VaPage .VaCyclePanel {
        position: sticky;
        top: 120px;
    }
}


/* ---------- Tablet ---------- */

@media (max-width: 991.98px) {
    .VaPage .VaHero {
        padding: 140px 0 110px !important;
    }

    .VaPage .VaElements,
    .VaPage .VaMethods,
    .VaPage .VaSteps,
    .VaPage .VaThreats,
    .VaPage .VaNetwork {
        padding-top: 76px !important;
        padding-bottom: 76px !important;
    }

    .VaPage .VaElements {
        padding-top: 90px !important;
    }

    .VaPage .VaCosts {
        padding: 76px 0 90px !important;
    }

    .VaPage .VaSectionHead {
        margin-bottom: 36px;
    }

    .VaPage .VaSectionHead .VaLead {
        margin-top: 18px;
    }

    .VaPage .VaThreatGrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .VaPage .VaCostBody {
        padding: 44px 40px 40px;
    }

    .VaPage .VaCostVisual {
        height: 340px;
    }
}


/* Two-column card rows on tablets: centre the odd card left on its own */
@media (min-width: 768px) and (max-width: 991.98px) {
    .VaPage .row.g-4 > [class*="col-md-6"]:last-child:nth-child(odd) {
        margin-left: auto;
        margin-right: auto;
    }
}


/* ---------- Phone ---------- */

@media (max-width: 575.98px) {
    .VaPage .VaHero {
        padding: 120px 0 90px !important;
    }

    .VaPage .VaHeroLogo {
        width: 120px;
    }

    .VaPage .VaHeroTitle {
        margin: 20px 0 12px;
        font-size: min(40px, 8.8cqi) !important;
    }

    .VaPage .VaHeroSubtitle {
        font-size: 18px !important;
        margin-bottom: 28px;
    }

    .VaPage .VaHeroActions .VaBtn {
        width: 100%;
    }

    .VaPage .VaElements {
        margin-top: -28px;
        padding-top: 70px !important;
        border-radius: 28px 28px 0 0;
    }

    .VaPage .VaElements,
    .VaPage .VaMethods,
    .VaPage .VaSteps,
    .VaPage .VaThreats,
    .VaPage .VaNetwork {
        padding-bottom: 60px !important;
    }

    .VaPage .VaMethods,
    .VaPage .VaSteps,
    .VaPage .VaThreats,
    .VaPage .VaNetwork {
        padding-top: 60px !important;
    }

    .VaPage .VaCosts {
        padding: 60px 0 80px !important;
    }

    /* The site forces h2 35px / h3 25px / p & li 16px on phones; keep this page's scale */
    .VaPage .VaSectionHead .SideHeadingMain {
        font-size: 30px !important;
    }

    .VaPage .VaCardTitle,
    .VaPage .VaMethodCard .VaCardTitle {
        font-size: 20px !important;
    }

    .VaPage .VaLead,
    .VaPage .VaCostLead {
        font-size: 16px !important;
    }

    .VaPage .VaChecklist li {
        font-size: 15px !important;
    }

    .VaPage .VaElementCard,
    .VaPage .VaMethodCard,
    .VaPage .VaBoxCard {
        border-radius: 18px;
    }

    .VaPage .VaMethodCard {
        padding: 28px 24px 30px;
    }

    .VaPage .VaMethodImg {
        height: 120px;
    }

    .VaPage .VaTimelineItem {
        gap: 14px;
    }

    .VaPage .VaTimeline::before {
        left: 21px;
    }

    .VaPage .VaTimelineNum {
        width: 44px;
        height: 44px;
        border-radius: 13px;
        font-size: 16px;
    }

    .VaPage .VaTimelineBody {
        padding: 18px 20px;
    }

    .VaPage .VaCycle {
        grid-template-columns: 1fr;
    }

    .VaPage .VaCycle li {
        font-size: 14px !important;
    }

    .VaPage .VaThreatGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .VaPage .VaThreat {
        padding: 24px 12px 20px;
        font-size: 14px !important;
    }

    .VaPage .VaThreat img {
        width: 52px;
        height: 52px;
    }

    .VaPage .VaCostCard {
        border-radius: 20px;
    }

    .VaPage .VaCostBody {
        padding: 34px 24px 32px;
    }

    .VaPage .VaCostTitle {
        font-size: 28px !important;
    }

    .VaPage .VaCostActions .VaBtn {
        width: 100%;
    }

    .VaPage .VaCostVisual {
        height: 260px;
        min-height: 0;
    }
}

@media (max-width: 374.98px) {
    .VaPage .VaHeroTitle {
        font-size: min(34px, 8.8cqi) !important;
    }
}
