/* ==========================================================================
   Topical Hub page (page-templates/hub-page.php)
   Products /enterprise-security/, Solutions /solutions/, Comparisons /comparisons/
   Figma: WRb2BDQXvlM9KrOVHrxg2k, node 15541:3758 (1920px frame, 1680px content).
   Page frame, type scale and section rhythm follow css/msp-page/style.css
   (the reference page); common-27.css supplies the reset and the h-* tokens.
   Sections 01 and 05 are page-wide rules copied from the MSP page so global
   elements look identical; when the h-page framework (common-27 on branch
   heimdal-page-builder-2027) is merged, move this page onto it and drop them.
   ========================================================================== */

/* 01. Page frame (same rules as the MSP page) ------------------------------ */
:root {
    --hub-blue-300: #408bfe;
    --hub-blue-200: #80b2ff;
    --hub-blue-100: #bfd8ff;
    --hub-card-bg: rgba(5, 9, 28, .4);
    --hub-radius: 1.875rem;
    --hub-font-heading: "Inter", "Nunito Sans", Arial, sans-serif;
    --hub-font-body: "Nunito Sans", Arial, sans-serif;
}

/* One fixed background for the whole page, same image and rule as the MSP page */
body:has(.hub-page) {
    background: #000 url('https://heimdalsecuritymedia.blob.core.windows.net/website/img/redesign-v4/product-page/main-page-bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

body:has(.hub-page) .site-header,
body:has(.hub-page) .global-bg {
    background: rgb(0 0 0 / 60%);
    backdrop-filter: blur(40px);
}

body:has(.hub-page) footer,
body:has(.hub-page) footer::before,
body:has(.hub-page) footer::after {
    background: transparent;
}

body:has(.hub-page) .mobile-top-bar,
body:has(.hub-page) .menu-open .header-mobile-wrapper {
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(40px);
}

body:has(.hub-page) footer .footer-container .footer-link {
    color: var(--hub-blue-100);
}

body:has(.hub-page) .cta-v3:after {
    content: none;
}

.hub-page {
    /* fixed site header height (same values as the MSP page) */
    --hub-site-header: 8.125rem;
    color: #fff;
    font-family: var(--hub-font-body);
    overflow-x: clip;
}

.hub-page h1,
.hub-page h2,
.hub-page h3 {
    color: #fff;
    font-family: var(--hub-font-heading);
    margin: 0;
    overflow-wrap: anywhere;
}

.hub-section {
    padding: 7.5rem 0;
    position: relative;
}

.hub-shell {
    margin: 0 auto;
    max-width: calc(105rem + 2 * clamp(1.25rem, 4vw, 4.5rem));
    padding: 0 clamp(1.25rem, 4vw, 4.5rem);
    width: 100%;
}

.hub-eyebrow {
    color: var(--hub-blue-200);
    font-family: var(--hub-font-heading);
    font-size: clamp(.95rem, 1.04vw, 1.25rem);
    font-weight: 600;
    letter-spacing: .08em;
    line-height: 1.21;
    margin: 0 0 .625rem;
    text-transform: uppercase;
}

.hub-sr-only {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* 02. Hero ------------------------------------------------------------------ */
/* Figma: 1080px tall frame (menu included) on a rotated "Background 2" glow,
   788 / 820 columns with a 72px gap, image starts 24px above the copy. */
.hub-section.hub-hero {
    padding-bottom: 6.25rem;
    /* the header is position: fixed, so the hero starts under it */
    padding-top: calc(var(--hub-site-header) + clamp(2rem, 6.4vw, 7.6875rem));
}

@media (max-width: 999px) {
    .hub-page {
        --hub-site-header: 5rem;
    }
}

.hub-hero__grid {
    align-items: start;
    display: grid;
    gap: 4.5rem;
    grid-template-columns: minmax(0, 788fr) minmax(0, 820fr);
}

.hub-hero__grid--no-image {
    grid-template-columns: minmax(0, 1fr);
    max-width: calc(64rem + 2 * clamp(1.25rem, 4vw, 4.5rem));
    margin-inline: 0;
}

.hub-hero__content {
    padding-top: 1.5rem;
}

.hub-page .hub-hero h1 {
    font-size: clamp(2.5rem, 3.385vw, 4.0625rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
    margin-bottom: 2rem;
}

.hub-hero__text {
    color: var(--hub-blue-100);
    font-size: clamp(1rem, 1.25vw, 1.5rem);
    line-height: 1.364;
}

.hub-hero__text p {
    margin: 0;
}

.hub-hero__text p + p {
    margin-top: 1em;
}

.hub-hero__visual {
    aspect-ratio: 820 / 724;
    border: 1px solid var(--hub-blue-300);
    border-radius: var(--hub-radius);
    overflow: hidden;
    width: 100%;
}

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

@media (max-width: 1440px) {
    .hub-shell {
        max-width: 90rem;
        padding-left: clamp(1.5rem, 4vw, 3.75rem);
        padding-right: clamp(1.5rem, 4vw, 3.75rem);
    }

    .hub-hero__grid {
        gap: 3.5rem;
    }
}

@media (max-width: 1024px) {
    .hub-hero__grid {
        gap: 3rem;
        grid-template-columns: minmax(0, 1fr);
    }

    .hub-hero__content {
        max-width: 48rem;
        padding-top: 0;
    }

    .hub-page .hub-hero h1 {
        font-size: clamp(2.5rem, 6.4vw, 3.75rem);
    }

    .hub-hero__visual {
        justify-self: center;
        max-width: 51.25rem;
    }
}

@media (max-width: 640px) {
    .hub-shell {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hub-hero__grid {
        gap: 2.5rem;
    }

    .hub-page .hub-hero h1 {
        font-size: clamp(2.2rem, 10vw, 2.75rem);
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .hub-eyebrow,
    .hub-card__kicker {
        font-size: .86rem;
        letter-spacing: .07em;
    }

    .hub-hero__visual {
        border-radius: 1.15rem;
    }
}

/* 03. Cards ----------------------------------------------------------------- */
/* Figma card: 534 x 700, 1px blue-300 border, 30px radius, full-bleed 534 x 300
   image, 40px padding, copy block 318px tall with the link pinned to its bottom. */
.hub-cards__grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.hub-card {
    background: var(--hub-card-bg);
    border: 1px solid var(--hub-blue-300);
    border-radius: var(--hub-radius);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    overflow: hidden;
    position: relative;
    transition: box-shadow .5s ease;
}

/* Blue-border glow, same as the MSP cards */
.hub-card:hover {
    box-shadow: 0 0 20px 8px #408bfe8c;
}

.hub-card__media {
    aspect-ratio: 534 / 300;
    background: #000;
    overflow: hidden;
}

.hub-card__media img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: scale .5s ease;
    width: 100%;
}

/* Image zoom, same as the MSP cards */
.hub-card:hover .hub-card__media img {
    scale: 1.05;
}

.hub-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2.5rem;
    justify-content: space-between;
    min-height: 22.375rem; /* 318px copy block + 40px bottom padding */
    padding: 0 2.5rem 2.5rem;
}

.hub-card__copy {
    display: flex;
    flex-direction: column;
}

.hub-card__kicker {
    color: var(--hub-blue-200);
    font-family: var(--hub-font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .08em;
    line-height: 1.4;
    margin: 0 0 .625rem;
    text-transform: uppercase;
}

.hub-page .hub-card__title {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.21;
}

.hub-card__text {
    color: var(--hub-blue-100);
    font-size: 1.25rem;
    line-height: 1.364;
    margin: 2rem 0 0;
}

.hub-card__link {
    align-items: center;
    align-self: flex-start;
    color: var(--hub-blue-200);
    display: inline-flex;
    font-size: 1.3125rem;
    font-weight: 700;
    gap: 1.8125rem;
    line-height: 1.364;
    text-decoration: none;
}

/* The whole card is clickable; the link stays the only focusable element. */
.hub-card__link::after {
    content: "";
    inset: 0;
    position: absolute;
}

.hub-card__link:hover,
.hub-card__link:focus-visible {
    color: var(--hub-blue-200);
}

.hub-card__link:focus-visible {
    outline: none;
}

.hub-card:has(.hub-card__link:focus-visible) {
    outline: 2px solid var(--hub-blue-200);
    outline-offset: 4px;
}

.hub-card__link svg {
    flex: none;
    transition: transform .3s ease-in-out;
}

.hub-card:hover .hub-card__link svg,
.hub-card__link:focus-visible svg {
    transform: translateX(.625rem);
}

@media (max-width: 1200px) {
    .hub-cards__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .hub-section {
        padding-bottom: 6rem;
        padding-top: 6rem;
    }
}

@media (max-width: 820px) {
    .hub-section {
        padding-bottom: 5rem;
        padding-top: 5rem;
    }
}

@media (max-width: 640px) {
    .hub-section {
        padding-bottom: 4rem;
        padding-top: 4rem;
    }

    .hub-page .hub-faq__title {
        font-size: clamp(1.9rem, 9vw, 2.4rem);
        line-height: 1.15;
    }
}

/* the hero keeps its own top padding (fixed header) on every width */
@media (max-width: 1200px) {
    .hub-section.hub-hero {
        padding-bottom: 3rem;
    }
}

@media (max-width: 700px) {
    .hub-cards__grid {
        gap: 1.5rem;
        grid-template-columns: minmax(0, 1fr);
    }

    .hub-card,
    .hub-card__body {
        gap: 1.75rem;
    }

    .hub-card__body {
        min-height: 0;
        padding: 0 1.5rem 1.75rem;
    }

    .hub-card__text {
        font-size: 1.125rem;
        margin-top: 1.25rem;
    }

    .hub-card__link {
        font-size: 1.125rem;
    }
}

/* 04. FAQ ------------------------------------------------------------------- */
/* Figma "FAQ New": 134px rows, 40px side padding, 24px Nunito question,
   26 x 13 chevron; rows share their 1px border (margin-bottom: -1px). */
.hub-page .hub-faq__title {
    font-size: clamp(2.25rem, 2.604vw, 3.125rem);
    font-weight: 600;
    line-height: 1.21;
    margin: 0 auto 6.25rem;
    text-align: center;
}

.hub-faq__item {
    border-bottom: 1px solid rgba(191, 216, 255, .3);
    border-top: 1px solid rgba(191, 216, 255, .3);
    margin-bottom: -1px;
    position: relative;
    transition: border-color .3s ease-in-out;
}

.hub-faq__item:hover,
.hub-faq__item[open] {
    border-color: var(--hub-blue-300);
    z-index: 1;
}

.hub-faq__question {
    align-items: center;
    color: var(--hub-blue-100);
    cursor: pointer;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    list-style: none;
    min-height: 8.25rem; /* 134px row incl. the shared 1px borders */
    padding: 1.5rem 2.5rem;
}

.hub-faq__question::-webkit-details-marker {
    display: none;
}

.hub-faq__question:focus-visible {
    outline: 2px solid var(--hub-blue-200);
    outline-offset: -2px;
}

.hub-page .hub-faq__question h3 {
    color: inherit;
    font-family: var(--hub-font-body);
    font-size: clamp(1.125rem, 1.25vw, 1.5rem);
    font-weight: 600;
    line-height: 1.364;
    max-width: 55rem;
}

.hub-faq__question svg {
    flex: none;
    transition: transform .3s ease-in-out;
}

.hub-faq__item[open] .hub-faq__question svg {
    transform: rotate(180deg);
}

.hub-faq__answer {
    color: var(--hub-blue-100);
    font-size: clamp(1rem, 1.04vw, 1.25rem);
    line-height: 1.55;
    max-width: 75rem;
    padding: 0 2.5rem 2.5rem;
}

.hub-faq__answer > * + * {
    margin-top: 1em;
}

.hub-faq__answer a {
    color: var(--hub-blue-200);
    text-decoration: underline;
}

.hub-faq__answer ul,
.hub-faq__answer ol {
    padding-left: 1.5em;
}

.hub-faq__answer ul {
    list-style: disc;
}

.hub-faq__answer ol {
    list-style: decimal;
}

@media (max-width: 820px) {
    .hub-page .hub-faq__title {
        margin-bottom: 4rem;
    }
}

@media (max-width: 640px) {
    .hub-page .hub-faq__title {
        margin-bottom: 3rem;
    }
}

@media (max-width: 640px) {
    .hub-faq__question {
        min-height: 5.5rem;
        padding: 1.25rem 1rem;
    }

    .hub-faq__answer {
        padding: 0 1rem 1.75rem;
    }
}

/* 05. Desktop scaling + footer (copied from the MSP page) -------------------- */
@media (min-width: 1025px) {
    html:has(.hub-page) {
        font-size: clamp(10px, .8333vw, 16px);
    }

    .hub-section {
        padding-bottom: 7.5rem;
        padding-top: 7.5rem;
    }

    .hub-shell {
        max-width: calc(105rem + 2 * clamp(1.25rem, 4vw, 4.5rem));
        padding-left: clamp(1.25rem, 4vw, 4.5rem);
        padding-right: clamp(1.25rem, 4vw, 4.5rem);
    }

    html:has(.hub-page) header.site-header .layout-container {
        max-width: calc(105rem + 2 * clamp(1.25rem, 4vw, 4.5rem));
        padding-inline: clamp(1.25rem, 4vw, 4.5rem);
    }

    .hub-hero__grid {
        gap: 4.375rem;
        grid-template-columns: minmax(0, 788fr) minmax(0, 820fr);
    }

    .hub-section.hub-hero {
        padding-bottom: 6.25rem;
    }

    body:has(.hub-page) footer .footer-container {
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: calc(105rem + 2 * clamp(1.25rem, 4vw, 4.5rem));
        padding-left: clamp(1.25rem, 4vw, 4.5rem);
        padding-right: clamp(1.25rem, 4vw, 4.5rem);
        width: 100%;
    }

    body:has(.hub-page) footer .footer-top {
        flex-wrap: nowrap;
        gap: 2rem;
        justify-content: space-between;
        padding-bottom: 7.5rem;
        padding-top: 7.5rem;
    }

    body:has(.hub-page) footer .footer-col {
        flex: none;
    }

    body:has(.hub-page) footer .footer-top>.first-col {
        width: 15rem;
    }

    body:has(.hub-page) footer .footer-top>.footer-col:nth-child(2) {
        width: 22rem;
    }

    body:has(.hub-page) footer .footer-top>.footer-col:nth-child(3) {
        width: 8.0625rem;
    }

    body:has(.hub-page) footer .footer-top>.footer-col:nth-child(4) {
        width: 13rem;
    }

    body:has(.hub-page) footer .footer-top>.last-col {
        width: 16.4375rem;
    }

    body:has(.hub-page) footer .footer-col.first-col {
        gap: 2.5rem;
        justify-content: flex-start;
    }

    body:has(.hub-page) footer .footer-container .branding img {
        max-width: none;
        width: 15rem;
    }

    body:has(.hub-page) footer .footer-container .slogan {
        color: var(--hub-blue-200);
        font-size: 2.0417rem;
        line-height: 1.2862;
        margin: 2.5rem 0 0;
        max-width: 15rem;
    }

    body:has(.hub-page) footer .footer-container .footer-title {
        color: #fff;
        display: block;
        font-family: var(--hub-font-heading);
        font-size: 1.125rem;
        font-weight: 700;
        letter-spacing: .16875rem;
        line-height: normal;
        margin-bottom: 2rem;
        min-height: 0;
        white-space: nowrap;
    }

    body:has(.hub-page) footer .footer-container .cta-box .cta-v3 {
        flex-wrap: nowrap;
        white-space: nowrap;
        width: max-content;
    }

    body:has(.hub-page) footer .footer-container .links-wrapper {
        gap: 1.25rem;
    }

    body:has(.hub-page) footer .footer-container .links-wrapper>.footer-title {
        margin-bottom: .75rem;
    }

    body:has(.hub-page) footer .footer-container .footer-link {
        color: var(--hub-blue-100);
        font-size: 1.0625rem;
        line-height: .9;
        margin-bottom: 0;
        white-space: nowrap;
    }

    body:has(.hub-page) footer .footer-container .footer-link sup {
        line-height: 0;
    }

    body:has(.hub-page) footer .footer-container .footer-link:hover {
        color: #fff;
    }

    body:has(.hub-page) footer .footer-container .follow-box .footer-title {
        margin-bottom: 2rem;
    }

    body:has(.hub-page) footer .footer-container .icons-box {
        gap: 1.5rem;
    }

    body:has(.hub-page) footer .footer-container .icons-box img {
        height: 1.5rem;
        width: 1.5rem;
    }

    body:has(.hub-page) footer .footer-container .icons-box a:nth-child(3) {
        order: 1;
    }

    body:has(.hub-page) footer .footer-container .icons-box a:nth-child(1) {
        order: 2;
    }

    body:has(.hub-page) footer .footer-container .icons-box a:nth-child(2) {
        order: 3;
    }

    body:has(.hub-page) footer .footer-container .icons-box a:nth-child(4) {
        order: 4;
    }

    body:has(.hub-page) footer hr {
        display: none;
    }

    body:has(.hub-page) footer .footer-container .footer-address {
        padding: 0 0 1.5rem;
        text-align: center;
    }

    body:has(.hub-page) footer .footer-container .footer-address p {
        color: rgba(191, 216, 255, .6);
        font-size: .875rem;
        font-weight: 400;
        line-height: normal;
        margin: 0;
    }

    body:has(.hub-page) footer .footer-container .footer-address br {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hub-card:hover .hub-card__media img {
        scale: none;
    }

    .hub-card,
    .hub-card__media img,
    .hub-card__link svg,
    .hub-faq__item,
    .hub-faq__question svg {
        transition: none;
    }
}
