/* include font http://rubberdesign.local/wp-content/uploads/et-fonts/din-regular.otf
*/
@font-face {
    font-family: "DIN Regular";
    src: url("http://rubberdesign.local/wp-content/uploads/et-fonts/din-regular.otf") format("opentype");
}

#wpadminbar{
    z-index: 999999999!important;
}

.rbd_menu_wrapper,
.rbd_menu_wrapper>*,
.rbd_menu_wrapper>*>*,
.rbd_menu_wrapper>*>*>*,
.rbd_menu_wrapper>*>*>*>*,
.rbd_menu_wrapper>*>*>*>*>*,
.rbd_menu_wrapper>*>*>*>*>*>*,
.rbd_menu_wrapper>*>*>*>*>*>*>* {
    padding: 0px !important;
    margin: 0px !important;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
    height: 100%;
}

:root {
    --menu-height: 125px;
    --secondary-menu-height: 40px;
    /* set by header.php when the admin bar is showing */
    --rbd_adminbar_height: 0px;
}

/* Top menu */
.rbd_menu_wrapper {
    position: fixed;
    left: 0px;
    top: 0px !important;
    width: 100%;
    height: var(--menu-height);
    z-index: 999999999 !important;
}

.rbd_menu_desktop_spacer {
    height: var(--menu-height);
}

.rbd_menu_wrapper .rbd_menu_top {
    background-color: var(--gcid-primary-color);
    width: 100%;
    position: absolute;
    left: 0px;
    top: 0px;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    height: calc(var(--secondary-menu-height));
}

.rbd_menu_wrapper .rbd_menu_top .rbd_menu_top_inner {
    width: calc(100% - 150px);
    max-width: 1700px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.rbd_menu_wrapper .rbd_menu_top .rbd_menu_top_inner .rbd_menu_top_menucontent {}

.rbd_menu_wrapper .rbd_menu_top .rbd_menu_top_inner .rbd_menu_top_menucontent #menu-secondary {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    gap: 0px;
    height: 100%;
}

/* Secondary menu items (top) */
.rbd_menu_wrapper .rbd_menu_top .rbd_menu_top_inner .rbd_menu_top_menucontent #menu-secondary.rbd_menu_top_menucontent_list .menu-item {
    display: flex;
    flex-direction: column;
    align-content: center !important;
    justify-content: center;
    align-items: center;
    padding: 0px 7px !important;
}

.rbd_menu_wrapper .rbd_menu_top .rbd_menu_top_inner .rbd_menu_top_menucontent #menu-secondary.rbd_menu_top_menucontent_list .menu-item a {
    color: white;
    font-family: "DIN REGULAR";
    font-weight: 500;
    font-size: 17px;
    display: block;
    float: left;
    height: auto;
    /* border: 1px solid red; */
}

/* Bottom menu */
.rbd_menu_wrapper .rbd_menu_bottom {
    width: 100%;
    height: calc(var(--menu-height) - var(--secondary-menu-height));
    background: rgb(255 255 255 / 86%);
    backdrop-filter: blur(8px);
    position: absolute;
    bottom: 0px;
    left: 0px;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: center;
}

.rbd_menu_wrapper .rbd_menu_bottom .rbd_menu_bottom_inner {
    height: 100%;
    width: calc(100% - 150px);
    max-width: 1700px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-gap: 20px;
    align-items: center;
}

.rbd_menu_wrapper .rbd_menu_bottom .rbd_menu_bottom_inner .rbd_menu_bottom_logo {
    height: calc(100% - 21px);
    width: 280px;
    position: relative;
    display: block;
    float: left;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
}

.rbd_menu_wrapper .rbd_menu_bottom .rbd_menu_bottom_inner .rbd_menu_bottom_menucontent {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.rbd_menu_wrapper .rbd_menu_bottom .rbd_menu_bottom_inner .rbd_menu_bottom_menucontent #menu-primary.rbd_menu_bottom_menucontent_list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

/* Primary menu items (bottom) */
.rbd_menu_wrapper .rbd_menu_bottom .rbd_menu_bottom_inner .rbd_menu_bottom_menucontent #menu-primary.rbd_menu_bottom_menucontent_list .menu-item {
    display: flex;
    align-content: center;
    align-items: center;
}

.rbd_menu_wrapper .rbd_menu_bottom .rbd_menu_bottom_inner .rbd_menu_bottom_menucontent #menu-primary.rbd_menu_bottom_menucontent_list .menu-item a {
    color: var(--primary);
    font-family: "DIN Regular";
    font-weight: 500;
    font-size: 20px;
    height: auto;
    letter-spacing: -.2px;
}


/* contact CTA : the contact page (class added in header.php) or any item with the css class "rbd_menu_cta" */
#menu-primary > li.menu-item.rbd_menu_cta > a {
    background-color: var(--gcid-primary-color);
    color: white !important;
    padding: 8px 12px !important;
    border-radius: 5px !important;
    font-size: 21px !important;
}


#menu-secondary > li.current-menu-item{
    background-color: #405B82;
    color: white !important;
}
#menu-primary > li.current-menu-item > a{
    color: var(--gcid-primary-color)!important;
}
#menu-primary > li.rbd_menu_cta.current-menu-item > a{
    background-color: var(--gcid-secondary-color)!important;
    color: white !important;
}

/* Mobile menu : call button + toggle button + dropdown panel (hidden on desktop, see media query below) */
.rbd_menu_wrapper .rbd_menu_call,
.rbd_menu_wrapper .rbd_menu_toggle,
.rbd_menu_wrapper .rbd_menu_mobile {
    display: none;
}

/* Call button : same shape as the toggle, white with a purple icon */
.rbd_menu_wrapper .rbd_menu_bottom .rbd_menu_bottom_inner .rbd_menu_bottom_menucontent .rbd_menu_call {
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-medium, 8px);
    background-color: white;
    color: #54166E;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rbd_menu_wrapper .rbd_menu_bottom .rbd_menu_bottom_inner .rbd_menu_bottom_menucontent .rbd_menu_call svg {
    display: block;
    width: 18px;
    height: 18px;
}

.rbd_menu_wrapper .rbd_menu_call:hover {
    transform: translateY(-2px);
    box-shadow: rgba(0, 0, 0, 0.15) 0px 6px 20px;
}

.rbd_menu_wrapper .rbd_menu_call:focus-visible {
    outline: 3px solid var(--gcid-secondary-color);
    outline-offset: 3px;
}

.rbd_menu_wrapper .rbd_menu_bottom .rbd_menu_bottom_inner .rbd_menu_bottom_menucontent .rbd_menu_toggle {
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0px 14px !important;
    border: none;
    border-radius: var(--border-radius-medium, 8px);
    background-color: var(--gcid-secondary-color);
    color: white;
    font-family: "PT Serif";
    font-weight: 600;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rbd_menu_wrapper .rbd_menu_toggle:hover {
    transform: translateY(-2px);
    box-shadow: rgba(0, 0, 0, 0.15) 0px 6px 20px;
}

.rbd_menu_wrapper .rbd_menu_toggle:focus-visible {
    outline: 3px solid var(--gcid-secondary-color);
    outline-offset: 3px;
}

.rbd_menu_wrapper .rbd_menu_toggle .rbd_menu_toggle_label {
    height: auto;
}

/* Hamburger : the span is the middle bar, ::before / ::after are the top and bottom bar */
.rbd_menu_wrapper .rbd_menu_toggle .rbd_menu_toggle_bars {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background-color: currentColor;
    transition: background-color 0.3s ease;
}

.rbd_menu_wrapper .rbd_menu_toggle .rbd_menu_toggle_bars::before,
.rbd_menu_wrapper .rbd_menu_toggle .rbd_menu_toggle_bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background-color: currentColor;
    transition: transform 0.3s ease;
}

.rbd_menu_wrapper .rbd_menu_toggle .rbd_menu_toggle_bars::before {
    top: -7px;
}

.rbd_menu_wrapper .rbd_menu_toggle .rbd_menu_toggle_bars::after {
    top: 7px;
}

/* Open : the three bars turn into a cross */
.rbd_menu_wrapper .rbd_menu_toggle[aria-expanded="true"] .rbd_menu_toggle_bars {
    background-color: transparent;
}

.rbd_menu_wrapper .rbd_menu_toggle[aria-expanded="true"] .rbd_menu_toggle_bars::before {
    transform: translateY(7px) rotate(45deg);
}

.rbd_menu_wrapper .rbd_menu_toggle[aria-expanded="true"] .rbd_menu_toggle_bars::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* Panel : slides in under the header, fills the rest of the screen */
.rbd_menu_wrapper .rbd_menu_mobile {
    position: absolute;
    top: 100%;
    left: 0px;
    width: 100%;
    height: calc(100vh - var(--menu-height) - var(--rbd_adminbar_height));
    height: calc(100dvh - var(--menu-height) - var(--rbd_adminbar_height));
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    background-color: #EFEDE9;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

.rbd_menu_wrapper.rbd_menu_open .rbd_menu_mobile {
    opacity: 1;
    visibility: visible;
    transform: translateY(0px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
}

.rbd_menu_wrapper .rbd_menu_mobile .rbd_menu_mobile_inner {
    width: calc(100% - 30px);
    max-width: 600px;
    height: auto;
    padding: 10px 0px 40px !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rbd_menu_wrapper .rbd_menu_mobile .rbd_menu_mobile_inner .rbd_menu_mobile_list {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
}

/* Menu items */
.rbd_menu_wrapper .rbd_menu_mobile .rbd_menu_mobile_list .menu-item {
    display: block;
    height: auto;
    border-bottom: 1px solid color-mix(in srgb, var(--gcid-secondary-color) 15%, transparent);
}

.rbd_menu_wrapper .rbd_menu_mobile .rbd_menu_mobile_list .menu-item:last-child {
    border-bottom: none;
}

.rbd_menu_wrapper .rbd_menu_mobile .rbd_menu_mobile_list .menu-item > a {
    display: block;
    height: auto;
    padding: 12px 0px !important;
    color: var(--gcid-secondary-color);
    font-family: "PT Serif";
    font-weight: 600;
    font-size: 22px;
    line-height: 1.3;
}

.rbd_menu_wrapper .rbd_menu_mobile .rbd_menu_mobile_list .current-menu-item > a {
    color: var(--gcid-primary-color);
}

/* Secondary menu : smaller, below the primary menu */
.rbd_menu_wrapper .rbd_menu_mobile .rbd_menu_mobile_list_secondary .menu-item > a {
    padding: 10px 0px !important;
    font-weight: 500;
    font-size: 17px;
}

/* Sub menu items (only when the mobile menu has them) */
.rbd_menu_wrapper .rbd_menu_mobile .rbd_menu_mobile_list .sub-menu {
    display: flex;
    flex-direction: column;
    height: auto;
}

.rbd_menu_wrapper .rbd_menu_mobile .rbd_menu_mobile_list .sub-menu .menu-item {
    border-bottom: none;
}

.rbd_menu_wrapper .rbd_menu_mobile .rbd_menu_mobile_list .sub-menu .menu-item > a {
    padding: 8px 0px 8px 20px !important;
    font-weight: 500;
    font-size: 18px;
}

/* contact CTA : the contact page (class added in header.php) or any item with the css class "rbd_menu_cta" */
.rbd_menu_wrapper .rbd_menu_mobile .rbd_menu_mobile_list .menu-item.rbd_menu_cta {
    margin: 14px 0px 4px !important;
    border-bottom: none;
}

.rbd_menu_wrapper .rbd_menu_mobile .rbd_menu_mobile_list .menu-item.rbd_menu_cta > a {
    padding: 12px 20px !important;
    border-radius: var(--border-radius-medium, 8px) !important;
    background-color: var(--gcid-primary-color);
    color: white !important;
    font-size: 21px !important;
    text-align: center;
}

.rbd_menu_wrapper .rbd_menu_mobile .rbd_menu_mobile_list .menu-item.rbd_menu_cta.current-menu-item > a {
    background-color: var(--gcid-secondary-color);
}

@media (max-width: 1200px) {
    :root {
        --menu-height: 64px;
        --secondary-menu-height: 0px;
    }

    /* No top bar : the secondary menu moves into the panel */
    .rbd_menu_wrapper .rbd_menu_top {
        display: none;
    }

    /* Bottom bar : logo left, toggle right */
    .rbd_menu_wrapper .rbd_menu_bottom .rbd_menu_bottom_inner {
        width: calc(100% - 30px);
        grid-template-columns: minmax(0, 1fr) auto;
        grid-gap: 12px;
    }

    .rbd_menu_wrapper .rbd_menu_bottom .rbd_menu_bottom_inner .rbd_menu_bottom_logo {
        height: calc(100% - 16px);
        width: 100%;
        max-width: 240px;
    }

    .rbd_menu_wrapper .rbd_menu_bottom .rbd_menu_bottom_inner .rbd_menu_bottom_menucontent .rbd_menu_bottom_menucontent_list {
        display: none !important;
    }

    .rbd_menu_wrapper .rbd_menu_bottom .rbd_menu_bottom_inner .rbd_menu_bottom_menucontent {
        gap: 10px;
    }

    .rbd_menu_wrapper .rbd_menu_bottom .rbd_menu_bottom_inner .rbd_menu_bottom_menucontent .rbd_menu_call,
    .rbd_menu_wrapper .rbd_menu_bottom .rbd_menu_bottom_inner .rbd_menu_bottom_menucontent .rbd_menu_toggle {
        display: flex;
    }

    .rbd_menu_wrapper .rbd_menu_mobile {
        display: flex;
    }

    /* Open : the header and the panel become one solid surface and the page behind it can't scroll */
    .rbd_menu_wrapper.rbd_menu_open .rbd_menu_bottom {
        background: #EFEDE9;
    }

    body.rbd_menu_open {
        overflow: hidden;
    }
}

/* Small screens : only the hamburger (the label stays available for screen readers) */
@media (max-width: 480px) {
    .rbd_menu_wrapper .rbd_menu_toggle .rbd_menu_toggle_label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}



div#page-container::after{

    content: "";
    position: fixed;
    width: 600px;
    height: 90%;
    bottom: 5%;
    left: 0;
    background-image: url("/wp-content/uploads/2026/10/watermark-rev2.webp");
    background-position: bottom left;
    background-repeat: no-repeat;
    background-size: contain;
}
@media (max-width: 480px) {
    div#page-container::after{
        width: 300px;
        height: 45%;
        bottom: 5%;
    }
}


/* disable horizontal scrolling */
body {
    overflow-x: hidden;
}