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

/* ── Hide Readymag scroll-wrapper scrollbar ── */
.content-scroll-wrapper {
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* IE/Edge */
}
.content-scroll-wrapper::-webkit-scrollbar {
    display: none;                  /* Chrome/Safari */
}

/* ── 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); }

/* ── Desktop Dropdown ── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
}

.nav-dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    margin-left: 6px;
    margin-bottom: 2px;
    transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
    transform: rotate(-135deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    padding-top: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 0; right: 0; bottom: 0;
    background: rgba(1, 10, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.nav-dropdown-menu a {
    position: relative;
    display: block;
    padding: 12px 20px;
    font-family: 'custom_95725', sans-serif;
    font-size: clamp(11px, 1vw, 14px);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    color: #ffffff;
    background: rgba(5, 99, 161, 0.15);
}

.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);
}

/* ── Mobile Dropdown ── */
.nav-mobile-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-mobile-dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    margin-left: 8px;
    margin-bottom: 2px;
    transition: transform 0.2s;
}

.nav-mobile-dropdown.open .nav-mobile-dropdown-toggle::after {
    transform: rotate(-135deg);
}

.nav-mobile-dropdown-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

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

.nav-mobile-dropdown-menu a {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
}

.nav-mobile-dropdown-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;
}

/* ── Skip Readymag loading screen ── */
.rmpreloader,
.page-preloader {
    display: none !important;
}

/* ── Hide "GET IN TOUCH" label, keep obfuscated email ── */
.ci-label {
    display: none !important;
}

/* ── 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;
}

/* ── Hide Readymag's built-in footer links ──
   Replaced by the unified multi-column footer. */
.rmwidget[data-id="674e06249a76f722bf20ecff"],
.rmwidget[data-id="674e062552efb5e4b774342b"],
.rmwidget[data-id="674e0625cb262285c1bdb675"],
.rmwidget[data-id="674e06254fce6dd93026de43"],
.rmwidget[data-id="674e0625af1abee6731a7eae"] {
    display: none !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;
}
