/* ══════════════════════════════════════════
   Nav-only styles for Readymag page overlay
   No global resets — safe for index.html
   ══════════════════════════════════════════ */

/* ── Navigation ── */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 10000;
    background: linear-gradient(180deg, #010a28 60%, transparent);
}

.site-nav * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.site-nav-inner {
    width: 100%;
    margin: 0 auto;
    padding: clamp(14px, 1.4vw, 20px) clamp(20px, 3.9vw, 56px);
    display: flex;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: clamp(8px, 0.8vw, 12px);
    text-decoration: none;
}

.nav-logo .icon { width: clamp(20px, 2.34vw, 34px); height: clamp(22px, 2.64vw, 38px); }
.nav-logo .wordmark { height: clamp(16px, 1.95vw, 28px); width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3.1vw, 45px);
    margin-left: auto;
}

.nav-links a {
    font-family: 'custom_95725', sans-serif;
    font-size: clamp(12px, 1.17vw, 17px);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 1);
    transition: color 0.2s;
}

.nav-links a:hover { color: rgba(5, 99, 161, 0.8); }

.nav-discover {
    display: inline-block;
    font-family: 'custom_95725', sans-serif;
    font-size: clamp(12px, 1.17vw, 17px);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    color: #000000;
    background-color: #ffffff;
    padding: clamp(10px, 0.8vw, 12px) clamp(18px, 2.1vw, 30px);
    margin-left: clamp(20px, 3.1vw, 45px);
    line-height: 1;
    transition: background-color 0.3s;
}

.nav-discover:hover {
    background-color: rgba(5, 99, 161, 0.8);
    color: #ffffff;
}

/* ── Burger Menu ── */
.nav-burger {
    display: none;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10002;
}

.nav-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-burger.active span:nth-child(2) {
    opacity: 0;
}

.nav-burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile Menu Overlay ── */
.nav-mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10001;
    background: rgba(1, 10, 40, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.nav-mobile-menu.open {
    display: flex;
}

.nav-mobile-menu a {
    font-family: 'custom_95725', sans-serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.nav-mobile-menu a:hover {
    color: rgba(5, 99, 161, 0.8);
}

.nav-mobile-menu .nav-mobile-discover {
    color: #000000;
    background-color: #ffffff;
    padding: 14px 40px;
    margin-top: 8px;
    transition: background-color 0.3s;
}

.nav-mobile-menu .nav-mobile-discover:hover {
    background-color: rgba(5, 99, 161, 0.8);
    color: #ffffff;
}

/* ── Hide Readymag's built-in nav widgets ──
   The custom .site-nav overlay replaces these.
   Without this, scrolling down and back up causes both the
   Readymag entrance-animated nav and the fixed .site-nav
   to appear simultaneously (duplicated/overlapping nav). */
.rmwidget[data-id="657c3ed05d4d100014989658"],  /* DISCOVER button */
.rmwidget[data-id="657c3ed0f7e4cf0015bd3dee"],  /* Logo icon */
.rmwidget[data-id="657c3ed0c5b874007050f52d"],  /* Logo wordmark */
.rmwidget[data-id="657c3ecf795abf0075bb2f1b"],  /* HOW IT WORKS */
.rmwidget[data-id="657c3ecf077bcd001a417327"],  /* USE CASES */
.rmwidget[data-id="657c3ed02626660050ce03d3"],  /* ABOUT US */
.rmwidget[data-id="674de20a424bdc1382555dd8"]   /* PROCUREMENT */
{
    display: none !important;
}

/* ── Footer Link Visibility ──
   White text on background image is barely readable.
   Text-shadow adds contrast without changing layout. */
[data-id="674e06249a76f722bf20ecff"] .text-viewer,
[data-id="674e062552efb5e4b774342b"] .text-viewer,
[data-id="674e0625cb262285c1bdb675"] .text-viewer {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8), 0 0 12px rgba(0, 0, 0, 0.5);
}

[data-id="674e06249a76f722bf20ecff"] a,
[data-id="674e062552efb5e4b774342b"] a,
[data-id="674e0625cb262285c1bdb675"] a {
    text-decoration: underline !important;
    text-decoration-color: rgba(255, 255, 255, 0.3) !important;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

[data-id="674e06249a76f722bf20ecff"] a:hover,
[data-id="674e062552efb5e4b774342b"] a:hover,
[data-id="674e0625cb262285c1bdb675"] a:hover {
    text-decoration-color: rgba(255, 255, 255, 0.8) !important;
}

@media (max-width: 768px) {
    .nav-links, .nav-discover { display: none; }
    .nav-burger { display: block; }

    /* ── Narrow viewport: prevent horizontal overflow ──
       The RM viewer's desktop layout has a min scale width of 769px.
       On narrower viewports, force everything to fit within 100vw. */
    body {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
}

/* ── Use Cases slideshow: ensure visibility on mobile ── */
.widget-slideshow .images-wrapper {
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

.widget-slideshow .image {
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
