/* Site-wide additions loaded on every public page (header, footer). */

/* ---------------------------------------------------------------- header */
.site-header {
    background: rgba(255, 255, 255, .92) !important;
    border-bottom: 1px solid rgba(20, 39, 54, .08) !important;
    box-shadow: 0 8px 30px -22px rgba(20, 39, 54, .35);
}
/* Only vertical padding: the container's horizontal gutter must stay intact. */
.site-header__bar { min-height: 68px; padding-top: 8px !important; padding-bottom: 8px !important; padding-left: 24px !important; padding-right: 24px !important; gap: 20px; }
@media (max-width: 640px) { .site-header__bar { padding-left: 16px !important; padding-right: 16px !important; } }
.site-header__logo { display: block; height: 40px; width: auto; max-width: 160px; object-fit: contain; }
.site-header nav[aria-label="Main navigation"] > a,
.site-header nav[aria-label="Main navigation"] > div > button { font-size: 14.5px; }
.site-header nav[aria-label="Main navigation"] .bg-primary\/10 { background: rgba(4, 74, 169, .08) !important; color: #044AA9 !important; }
.site-header__cta {
    padding: 10px 20px !important; font-size: 14px !important; font-weight: 600;
    background: linear-gradient(135deg, #044AA9, #2563EB) !important; color: #fff !important;
    box-shadow: 0 10px 24px -12px rgba(4, 74, 169, .7);
}
.site-header__cta:hover { filter: brightness(1.08); }
@media (max-width: 1023px) {
    .site-header__bar { min-height: 60px; }
    .site-header__logo { height: 34px; max-width: 130px; }
}
/* Menu labels never wrap onto two lines. */
.site-header nav[aria-label="Main navigation"] > a,
.site-header nav[aria-label="Main navigation"] > div > button,
.site-header__cta { white-space: nowrap; }
/* Small laptops and landscape tablets: the full menu plus the CTA must fit without overflowing. */
@media (min-width: 1024px) and (max-width: 1279px) {
    .site-header__bar { gap: 12px; padding-left: 16px !important; padding-right: 16px !important; }
    .site-header__logo { height: 34px; max-width: 120px; }
    .site-header nav[aria-label="Main navigation"] > a,
    .site-header nav[aria-label="Main navigation"] > div > button { font-size: 13.5px; padding-left: 9px; padding-right: 9px; gap: 4px; }
    .site-header nav[aria-label="Main navigation"] > a > :first-child,
    .site-header nav[aria-label="Main navigation"] > div > button > :first-child { display: none; }
    .site-header__cta { padding: 9px 14px !important; font-size: 13px !important; }
}

.sf {
    position: relative; isolation: isolate; overflow: hidden;
    color: #cbd5e1;
    background:
        radial-gradient(900px 380px at 12% 0%, rgba(37, 99, 235, .14), transparent 65%),
        radial-gradient(700px 360px at 100% 100%, rgba(96, 165, 250, .08), transparent 65%),
        #071324;
    font-family: 'Jost', ui-sans-serif, system-ui, sans-serif;
    border-top: 1px solid rgba(148, 163, 184, .12);
}
.sf__glow {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.sf__container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .sf__container { padding: 0 16px; } }

.sf a { color: inherit; text-decoration: none; }
.sf ul { list-style: none; margin: 0; padding: 0; }
.sf p { margin: 0; }

/* buttons */
.sf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 24px; border-radius: 999px;
    font-weight: 600; font-size: 15px; color: #ffffff !important;
    background: linear-gradient(135deg, #2563eb 0%, #044aa9 100%);
    box-shadow: 0 10px 26px -12px rgba(96, 165, 250, .7);
    transition: transform .25s ease, box-shadow .25s ease;
}
.sf-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(96, 165, 250, .85); }
.sf-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sf-btn--sm { min-height: 44px; margin-top: 26px; }

/* optional CTA (admin: footer.cta_enabled) */
.sf-cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
    margin-top: 64px; padding: 28px 32px; border-radius: 22px;
    background: rgba(255, 255, 255, .04); border: 1px solid rgba(148, 163, 184, .16);
}
.sf-cta__title { font-size: 22px; font-weight: 700; color: #fff; }
.sf-cta__text { margin-top: 6px !important; font-size: 15px; color: #94a3b8; }

/* main grid */
.sf__grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px;
    padding: 80px 0 56px;
}
.sf__logo { display: inline-flex; align-items: center; gap: 12px; }
.sf__logo img { height: 54px; width: auto; max-width: 210px; object-fit: contain; }
.sf__mark {
    display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
    border-radius: 14px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #044aa9, #2563eb);
    box-shadow: 0 10px 24px -10px rgba(37, 99, 235, .7);
}
.sf__name { font-size: 21px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.sf__about { margin-top: 20px; max-width: 340px; font-size: 15px; line-height: 1.7; color: #94a3b8; }
.sf__about p { margin: 0; }

.sf__title { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #93c5fd; }
.sf__col ul { margin-top: 22px; display: grid; gap: 14px; }
.sf__col a { font-size: 15.5px; color: #cbd5e1; transition: color .2s, transform .2s; display: inline-flex; }
.sf__col a:hover { color: #fff; transform: translateX(3px); }

.sf__contact li a, .sf__contact li span { display: inline-flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; color: #cbd5e1; }
.sf__contact li a:hover { transform: none; color: #fff; }
.sf__contact svg { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: #93c5fd; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sf__social { display: flex; gap: 10px; margin-top: 26px; }
.sf__social a {
    display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center;
    border-radius: 12px; color: #cbd5e1; font-size: 11px; font-weight: 700;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(148, 163, 184, .18);
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.sf__social a:hover { color: #ffffff; background: #2563eb; border-color: #2563eb; transform: translateY(-2px); }
.sf__social-icon { width: 16px; height: 16px; fill: currentColor; }

/* bottom bar */
.sf__bottom {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    /* extra bottom space keeps the fixed sticky CTA from covering the legal links */
    padding: 26px 0 108px; border-top: 1px solid rgba(148, 163, 184, .14);
    font-size: 14px; color: #64748b;
}
.sf__bottom nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.sf__bottom nav a { color: #94a3b8; transition: color .2s; }
.sf__bottom nav a:hover { color: #fff; }

@media (max-width: 1024px) {
    .sf__grid { grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 64px; }
    .sf__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .sf__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding: 56px 0 40px; }
    .sf__contact { grid-column: 1 / -1; }
    .sf__bottom { flex-direction: column; align-items: flex-start; padding-bottom: 100px; }
}

/* ---------------------------------------------------------------- mega menu (3D) */
.mm-chevron { transition: transform .3s ease, color .3s; }
.mm-chevron.is-open { transform: rotate(180deg); color: #044AA9; }

.mm-panel {
    position: fixed; left: 0; right: 0; top: 68px; z-index: 60;
    display: flex; justify-content: center; padding: 10px 16px 0;
    pointer-events: none; perspective: 1600px;
}
.mm-card {
    pointer-events: auto; width: 100%; max-width: 1140px;
    display: grid; grid-template-columns: 300px minmax(0, 1fr);
    border-radius: 22px; overflow: hidden;
    background: #fff;
    border: 1px solid rgba(20, 39, 54, .1);
    box-shadow: 0 40px 90px -30px rgba(7, 19, 36, .45), 0 0 0 1px rgba(255, 255, 255, .6) inset;
    transform-origin: top center;
}

/* panel enter / leave: swings down in 3D */
.mm-t-enter { transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1); }
.mm-t-leave { transition: opacity .15s ease, transform .15s ease; }
.mm-t-from { opacity: 0; }
.mm-t-from .mm-card { transform: rotateX(-14deg) translateY(-10px) scale(.98); }
.mm-t-to { opacity: 1; }
.mm-t-to .mm-card { transform: none; }
.mm-card { transition: transform .45s cubic-bezier(.2, .8, .2, 1); }

/* left brand panel */
.mm-side {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; padding: 28px 26px;
    color: #cbd5e1;
    background:
        radial-gradient(260px 200px at 80% 10%, rgba(37, 99, 235, .45), transparent 70%),
        radial-gradient(240px 220px at 0% 100%, rgba(4, 74, 169, .5), transparent 70%),
        linear-gradient(160deg, #0b1c32, #071324);
}
.mm-eyebrow { position: relative; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #93c5fd; }
.mm-heading { position: relative; margin-top: 10px; font-size: 21px; line-height: 1.25; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.mm-intro { position: relative; margin-top: 12px; font-size: 14px; line-height: 1.6; color: #94a3b8; }
.mm-side__actions { position: relative; margin-top: auto; padding-top: 24px; display: grid; gap: 12px; }
.mm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 18px; border-radius: 999px;
    font-size: 14px; font-weight: 600; color: #fff !important; text-decoration: none;
    background: linear-gradient(135deg, #2563eb, #044aa9);
    box-shadow: 0 12px 26px -12px rgba(37, 99, 235, .9);
    transition: transform .25s, filter .25s;
}
.mm-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.mm-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mm-hub { font-size: 14px; font-weight: 600; color: #bfdbfe !important; text-decoration: none; text-align: center; }
.mm-hub span { display: inline-block; transition: transform .25s; }
.mm-hub:hover span { transform: translateX(4px); }

/* rotating 3D cube with orbit rings */
.mm-orb { position: relative; width: 84px; height: 84px; margin-bottom: 22px; perspective: 500px; }
.mm-orb__cube {
    position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
    transform-style: preserve-3d; animation: mm-spin 9s linear infinite;
}
.mm-orb__cube span {
    position: absolute; inset: 0; border-radius: 6px;
    background: linear-gradient(135deg, rgba(96, 165, 250, .55), rgba(37, 99, 235, .25));
    border: 1px solid rgba(191, 219, 254, .7);
    box-shadow: 0 0 18px rgba(96, 165, 250, .45) inset;
}
.mm-orb__cube span:nth-child(1) { transform: translateZ(17px); }
.mm-orb__cube span:nth-child(2) { transform: rotateY(180deg) translateZ(17px); }
.mm-orb__cube span:nth-child(3) { transform: rotateY(90deg) translateZ(17px); }
.mm-orb__cube span:nth-child(4) { transform: rotateY(-90deg) translateZ(17px); }
.mm-orb__cube span:nth-child(5) { transform: rotateX(90deg) translateZ(17px); }
.mm-orb__cube span:nth-child(6) { transform: rotateX(-90deg) translateZ(17px); }
.mm-orb__ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 1px solid rgba(147, 197, 253, .45);
    transform: rotateX(70deg); animation: mm-ring 6s linear infinite;
}
.mm-orb__ring::after { content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 10px #fbbf24; }
.mm-orb__ring--2 { inset: 10px; border-color: rgba(56, 189, 248, .4); animation-duration: 9s; animation-direction: reverse; transform: rotateX(70deg) rotateY(50deg); }
.mm-orb__ring--2::after { background: #38bdf8; box-shadow: 0 0 10px #38bdf8; }
@keyframes mm-spin { to { transform: rotateX(360deg) rotateY(720deg); } }
@keyframes mm-ring { to { transform: rotateX(70deg) rotateZ(360deg); } }

/* right: categories */
.mm-body { padding: 22px 24px; max-height: min(64vh, 30rem); overflow-y: auto; }
.mm-group + .mm-group { margin-top: 18px; padding-top: 18px; border-top: 1px solid #eef2f7; }
.mm-group__label { margin-bottom: 8px; padding-left: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #64748b; }
.mm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 8px; perspective: 900px; }

.mm-item {
    position: relative; display: flex; align-items: flex-start; gap: 12px;
    padding: 10px; border-radius: 14px; text-decoration: none;
    border: 1px solid transparent;
    transition: background .25s, border-color .25s, box-shadow .25s, transform .3s cubic-bezier(.2, .8, .2, 1);
    transform-style: preserve-3d;
}
.mm-t-enter .mm-item { animation: mm-item-in .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 28ms + 80ms); }
@keyframes mm-item-in { from { opacity: 0; transform: rotateX(-35deg) translateY(10px); } to { opacity: 1; transform: none; } }
.mm-item:hover {
    background: linear-gradient(135deg, #f5f9ff, #eef4ff);
    border-color: rgba(37, 99, 235, .22);
    box-shadow: 0 14px 30px -18px rgba(4, 74, 169, .55);
    transform: translateY(-2px) rotateX(6deg);
}
.mm-item__icon {
    flex: none; display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center;
    border-radius: 12px; color: #044aa9;
    background: #eff6ff; border: 1px solid #dbeafe;
    transition: background .3s, color .3s, transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
}
.mm-item__icon .nav-item-icon { background: transparent !important; color: inherit !important; width: auto !important; height: auto !important; box-shadow: none !important; }
.mm-item:hover .mm-item__icon {
    color: #fff; background: linear-gradient(135deg, #2563eb, #044aa9); border-color: transparent;
    transform: translateZ(18px) rotateY(-14deg);
    box-shadow: 0 10px 20px -8px rgba(37, 99, 235, .7);
}
.mm-item__text { min-width: 0; flex: 1; }
.mm-item__title { display: block; font-size: 14.5px; line-height: 1.3; font-weight: 600; color: #142736; }
.mm-item__line { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: #64748b; }
.mm-item:hover .mm-item__title { color: #044aa9; }
.mm-item__arrow { flex: none; width: 15px; height: 15px; fill: none; stroke: #2563eb; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
.mm-item:hover .mm-item__arrow { opacity: 1; transform: none; }

@media (max-width: 1180px) {
    .mm-card { grid-template-columns: 250px minmax(0, 1fr); }
    .mm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .mm-orb__cube, .mm-orb__ring, .mm-item { animation: none !important; }
    .mm-t-enter, .mm-card { transition: none !important; }
}
