:root {
    --navy: #17314f;
    --line: #e2e8f0;
    --text: #223b57;
    --muted: #66788f;
    --yellow-dark: #d39a16;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
            radial-gradient(circle at top right, rgba(241, 106, 139, 0.08), transparent 18%),
            radial-gradient(circle at top left, rgba(23, 49, 79, 0.04), transparent 20%),
            linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    overflow-x: hidden;
    position: relative;
}

header,
main,
footer {
    position: relative;
}

section[id] {
    scroll-margin-top: 105px;
}

.hero-cta-red {
    background: #e34b6f;
    box-shadow: 0 16px 30px rgba(241, 106, 139, 0.22);
    text-decoration: none;
}

.hero-cta-red:hover {
    transform: translateY(-1px);
    background: #cc4b72;
}

/* WATERMARK */
.site-watermark {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.site-watermark::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: min(52vw, 860px);
    height: 100vh;
    background-image: url("assets/media/Executive-Payroll-21-1.png");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 180% auto;
    opacity: 0.3;
    transform: translateX(10%) translateY(0);
    transform-origin: right center;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    overflow: visible;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

/* DESKTOP DROPDOWN */
/* DESKTOP DROPDOWN */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 510;
}

.nav-dropdown-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 24px 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    color: var(--muted);
    white-space: nowrap;
    transition: color 0.25s ease;
}

.nav-dropdown-toggle:hover {
    color: var(--navy);
}

.nav-dropdown-toggle::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 14px;
    width: 100%;
    height: 2px;
    background: #000;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
}

.nav-dropdown.is-open .nav-dropdown-toggle {
    color: var(--navy);
}

.nav-dropdown.is-open .nav-dropdown-toggle::after {
    transform: scaleX(1);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    width: 420px;
    max-width: min(420px, calc(100vw - 40px));
    max-height: min(70vh, 520px);
    overflow-y: auto;
    display: grid;
    gap: 4px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 24px 50px rgba(16, 39, 65, 0.14);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transform-origin: top right;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: flex-start;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
    transition: background 0.22s ease, color 0.22s ease;
}

.nav-dropdown-item:hover {
    background: rgba(252, 198, 78, 0.14);
    color: var(--yellow-dark);
}

.desktop-nav-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 28px;
}

@media (min-width: 1024px) {
    .nav-dropdown {
        position: static;
    }

    .nav-dropdown-menu {
        top: calc(100% + 12px);
        left: 50%;
        right: auto;
        width: max(420px, 100%);
        max-width: min(420px, calc(100vw - 40px));
        transform: translate(-50%, 10px);
        transform-origin: top center;
    }

    .nav-dropdown.is-open .nav-dropdown-menu {
        transform: translate(-50%, 0);
    }
}

/* MOBILE SUBMENU */
.mobile-submenu {
    transition: max-height 0.25s ease, margin-top 0.25s ease;
}

.mobile-submenu.is-open {
    max-height: 420px !important;
    margin-top: 6px !important;
}

.mobile-submenu-toggle.is-open .mobile-caret {
    transform: rotate(180deg);
    color: var(--navy);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .site-watermark::before {
        width: min(62vw, 700px);
        background-size: 190% auto;
        opacity: 0.3;
        transform: translateX(14%) translateY(4%);
    }
}

@media (max-width: 1023px) {
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
    }

    main {
        padding-top: 88px;
    }

    .footer-sb__layout {
        grid-template-columns: 1fr;
        row-gap: 32px;
    }

    .footer-sb__logo,
    .footer-sb__nav,
    .footer-sb__contact {
        min-height: auto;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .site-watermark {
        display: none;
    }

    html,
    body {
        overflow-x: hidden;
    }

    section[id] {
        scroll-margin-top: 88px;
    }
}

/* MOBILE MENU */
.mobile-menu {
    background: rgba(255, 255, 255, 0.99) !important;
    border: 1px solid var(--line) !important;
    box-shadow: 0 20px 50px rgba(16, 39, 65, 0.16) !important;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 480;
}

.mobile-menu.is-open {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

/* HERO DECORATION */
.hero-blob {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(40px);
    opacity: 0.85;
    z-index: 0;
}

.hero-blob-1 {
    width: 260px;
    height: 260px;
    top: 20px;
    right: 8%;
    background: rgba(241, 106, 139, 0.14);
}

.hero-blob-2 {
    width: 220px;
    height: 220px;
    bottom: 0;
    left: -40px;
    background: rgba(23, 49, 79, 0.06);
}

/* MINI HERO CARDS */
/* MINI HERO CARDS */
.mini-card-link {
    --card-lift-y: 0px;
    text-decoration: none;
    transform: translate3d(0, var(--card-lift-y), 0);
    transition:
            transform 0.24s ease,
            box-shadow 0.24s ease,
            border-color 0.24s ease,
            background-color 0.24s ease,
            color 0.24s ease;
    will-change: transform, box-shadow, border-color;
    backface-visibility: hidden;
}

.mini-card-link strong {
    transition: color 0.24s ease;
}

.mini-card-link:hover {
    --card-lift-y: -4px;
    box-shadow: 0 18px 36px rgba(16, 39, 65, 0.08);
    border-color: #d6dee8;
}

.mini-card-link:hover strong {
    color: #cc4b72;
}

.mini-card-link:focus-visible {
    outline: none;
    border-color: #cc4b72;
    box-shadow: 0 0 0 4px rgba(241, 106, 139, 0.18);
}

/* REVEAL */
.reveal {
    --reveal-offset-y: 26px;
    --card-lift-y: 0px;
    opacity: 0;
    transform: translate3d(0, calc(var(--reveal-offset-y) + var(--card-lift-y)), 0);
    transition:
            opacity 0.55s ease,
            transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
            box-shadow 0.24s ease,
            border-color 0.24s ease,
            background-color 0.24s ease,
            color 0.24s ease;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.reveal.is-visible {
    opacity: 1;
    --reveal-offset-y: 0px;
}
.reveal {
    min-width: 0;
}

.mini-card-link {
    min-width: 0;
}

.mini-card-link strong {
    display: block;
}


/* SMOOTH HOVER FOR CONTENT CARDS */
:is(
    #how-to-use,
    #access-identity,
    #data-protection,
    #infrastructure-security,
    #operational-resilience,
    #governance-risk,
    #people-awareness,
    #physical-security
) article {
    --card-lift-y: 0px;
    transform: translate3d(0, calc(var(--reveal-offset-y, 0px) + var(--card-lift-y)), 0);
    will-change: transform, box-shadow, border-color;
    backface-visibility: hidden;
}

:is(
    #how-to-use,
    #access-identity,
    #data-protection,
    #infrastructure-security,
    #operational-resilience,
    #governance-risk,
    #people-awareness,
    #physical-security
) article:hover {
    --card-lift-y: -4px;
}

/* MOBILE MENU BUTTON */
.mobile-menu-btn {
    position: relative;
    overflow: hidden;
}

.mobile-menu-btn__icon {
    position: relative;
    width: 20px;
    height: 20px;
    display: block;
}

.mobile-menu-btn__line {
    position: absolute;
    left: 50%;
    display: block;
    height: 2px;
    border-radius: 999px;
    background: var(--navy);
    transform-origin: center;
    transition:
            transform 0.28s ease,
            opacity 0.2s ease,
            width 0.28s ease,
            background-color 0.22s ease;
}

.mobile-menu-btn__line--top {
    top: 4px;
    width: 16px;
    transform: translateX(-50%);
}

.mobile-menu-btn__line--middle {
    top: 9px;
    width: 20px;
    transform: translateX(-50%);
}

.mobile-menu-btn__line--bottom {
    top: 14px;
    width: 16px;
    transform: translateX(-50%);
}

.mobile-menu-btn:hover .mobile-menu-btn__line--top,
.mobile-menu-btn:hover .mobile-menu-btn__line--bottom {
    width: 20px;
}

.mobile-menu-btn:hover .mobile-menu-btn__line {
    background: var(--yellow-dark);
}

.mobile-menu-btn[aria-expanded="true"] {
    background: #fafcff;
    border-color: #d6dee8;
}

.mobile-menu-btn[aria-expanded="true"] .mobile-menu-btn__line--top {
    top: 9px;
    width: 20px;
    transform: translateX(-50%) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] .mobile-menu-btn__line--middle {
    opacity: 0;
    transform: translateX(-50%) scaleX(0.2);
}

.mobile-menu-btn[aria-expanded="true"] .mobile-menu-btn__line--bottom {
    top: 9px;
    width: 20px;
    transform: translateX(-50%) rotate(-45deg);
}

/* FOOTER */
.footer-sb {
    background-image: url("assets/media/sb11121.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.footer-sb::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.72);
}

.footer-sb__layout {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(280px, 1fr);
    column-gap: clamp(32px, 4vw, 72px);
    align-items: center;
}

.footer-sb__logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 170px;
}

.footer-sb__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 170px;
}

.footer-sb__nav-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    line-height: 1.35;
    color: #4f4f4f;
}

.footer-sb__contact {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 170px;
}

.footer-sb__contact-box {
    text-align: left;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .site-watermark::before {
        width: min(62vw, 700px);
        background-size: 190% auto;
        opacity: 0.3;
        transform: translateX(14%) translateY(4%);
    }
}

@media (max-width: 1023px) {
    .footer-sb__layout {
        grid-template-columns: 1fr;
        row-gap: 32px;
    }

    .footer-sb__logo,
    .footer-sb__nav,
    .footer-sb__contact {
        min-height: auto;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .site-watermark {
        display: none;
    }

    html,
    body {
        overflow-x: hidden;
    }

    section[id] {
        scroll-margin-top: 88px;
    }
}