:root {
    --iontec-primary: #37afe4;
    --iontec-dark: #333333;
}

body {
    padding-top: 100px;
}

.row-container {
    margin: 0 auto;
    max-width: 1380px;
}

/* ==========================================================================
   Header
   ========================================================================== */

#masthead.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 26px 0;
    background: transparent;
    box-sizing: border-box;
    transition: all 300ms ease;
}

#masthead.site-header.navbar-fixed-top {
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);
}

#masthead > .row-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: unset;
    margin: 0 40px;
    padding: 0;
}

#masthead .logo {
    position: relative;
    transition: all 0.5s ease;
}

#masthead .logo img {
    display: block;
    width: 260px;
    height: fit-content;
    object-fit: contain;
    object-position: left;
    transition: all 500ms ease;
}

#masthead.navbar-fixed-top .logo img {
    width: 200px;
}

.menu-right {
    display: flex;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
}

#masthead #site-navigation {
    display: flex;
    height: 100%;
    align-items: center;
}

#masthead ul#primary-menu {
    display: flex;
    list-style-type: none;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    margin: 0;
    padding: 0;
}

#masthead ul#primary-menu li.menu-item {
    position: relative;
}

#masthead ul#primary-menu > li.menu-item > a {
    display: block;
    position: relative;
    width: fit-content;
    padding: 0 20px;
    color: #000;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    font-family: "Work Sans", sans-serif;
    text-decoration: none;
    transition: all 500ms ease;
}

#masthead ul#primary-menu > li.menu-item > a:hover,
#masthead ul#primary-menu > li.menu-item > a:focus {
    text-decoration: none;
}

#masthead ul#primary-menu > li.menu-item.current-menu-item > a {
    color: var(--iontec-primary);
}

#masthead ul#primary-menu > li.menu-item.menu-item-has-children > a {
    padding: 0 38px 0 20px;
}

#masthead li.menu-item.menu-item-has-children::before {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 14px;
    top: 4px;
    color: var(--iontec-primary);
    font-size: 12px;
    transition: all 500ms ease;
}

#masthead ul.sub-menu {
    position: absolute;
    left: 0;
    top: 130%;
    width: 240px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #eee;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    transition: all 0.3s ease;
}

#masthead li.menu-item:hover > ul.sub-menu {
    top: calc(100% - 5px);
    opacity: 1;
    pointer-events: all;
}

#masthead ul.sub-menu > li.menu-item > a {
    display: block;
    padding: 12px 20px;
    color: #000;
    font-size: 14px;
    position: relative;
    text-decoration: none;
    transition: all 300ms ease;
}

#masthead ul.sub-menu > li.menu-item > a:hover {
    color: var(--iontec-primary);
    text-decoration: none;
}

/* CTA button styling shared by the trailing "Contact" menu item (flagged as
   readmore in the CMS menu) and the Firefish account/login menu items, so
   both read as the same pill-shaped call-to-action used on ion-tec.com.
   On hover, the blue fill collapses in on itself from the edges toward the
   centre, revealing a white button with a blue border and blue text. */
#masthead ul#primary-menu li.menu-item.readmore,
#masthead ul#primary-menu li.menu-item.login-item {
    position: relative;
    display: flex;
    align-items: center;
    width: fit-content;
    padding: 12px 30px;
    background: #fff;
    border: 2px solid var(--iontec-primary);
    border-radius: 10px;
    box-sizing: border-box;
    overflow: hidden;
}

#masthead ul#primary-menu li.menu-item.login-item {
    padding: 12px 24px;
}

#masthead ul#primary-menu li.menu-item.readmore::before,
#masthead ul#primary-menu li.menu-item.login-item::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: var(--iontec-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 900ms ease;
    z-index: 0;
}

#masthead ul#primary-menu li.menu-item.readmore:hover::before,
#masthead ul#primary-menu li.menu-item.login-item:hover::before {
    transform: translate(-50%, -50%) scale(0);
}

#masthead ul#primary-menu li.menu-item.readmore > a,
#masthead ul#primary-menu li.menu-item.login-item > a {
    position: relative;
    z-index: 1;
    padding: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    transition: color 300ms ease;
    text-wrap: no-wrap;
}

#masthead ul#primary-menu li.menu-item.readmore > a::before,
#masthead ul#primary-menu li.menu-item.login-item > a::before {
    content: none;
}

#masthead ul#primary-menu li.menu-item.readmore:hover > a,
#masthead ul#primary-menu li.menu-item.login-item:hover > a {
    color: var(--iontec-primary);
}

/* ==========================================================================
   Mobile menu bar
   ========================================================================== */

.mob-menu-header-holder.mobmenu {
    display: none;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    padding: 0 20px;
    background: #fff;
    box-sizing: border-box;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
    z-index: 10000;
}

.mob-menu-header-holder .mobmenu-left-bt {
    font-size: 26px;
    line-height: 26px;
    color: var(--iontec-primary);
}

.mob-menu-header-holder .mob-menu-logo-holder img {
    max-height: 40px;
}

/* ==========================================================================
   Mobile off-canvas panel
   ========================================================================== */

.mobmenu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.83);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s 0.4s;
    z-index: 10001;
}

.mobmenu-overlay.show-panel {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease;
}

.mobmenu-left-panel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 270px;
    max-width: 85%;
    background: #fff;
    z-index: 10002;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.mobmenu-left-panel.show-panel {
    transform: translateX(0);
}

.mobmenu-left-panel > .mobmenu-left-bt {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    color: var(--iontec-primary);
    z-index: 1;
}

.mobmenu-content {
    margin-top: 60px;
    padding-bottom: 60px;
}

.mobmenu-content ul.wp-mobile-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

#mobmenuleft li.menu-item {
    position: relative;
}

#mobmenuleft li.menu-item > a {
    display: block;
    padding: 14px 20px;
    color: #0a0a0a;
    font-size: 15px;
    font-family: "Work Sans", sans-serif;
    border-bottom: 1px solid #eee;
}

#mobmenuleft li.menu-item > a:hover {
    color: var(--iontec-primary);
}

#mobmenuleft li.menu-item.current-menu-item > a {
    color: var(--iontec-primary);
}

#mobmenuleft li.mobileSubMenuToggle > i {
    position: absolute;
    right: 20px;
    top: 16px;
    color: var(--iontec-primary);
    transition: transform 300ms ease;
}

#mobmenuleft li.mobileSubMenuToggle.active > i {
    transform: rotate(180deg);
}

#mobmenuleft ul.sub-menu {
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #f5f5f5;
}

#mobmenuleft li.mobileSubMenuToggle.active > ul.sub-menu {
    display: block;
}

#mobmenuleft ul.sub-menu li.menu-item > a {
    padding-left: 40px;
    font-size: 14px;
    border-bottom: 1px solid #eaeaea;
}

/* Contact CTA and Firefish account/login rows read as the same pill-shaped
   button used in the desktop nav, instead of plain list rows */
#mobmenuleft li.menu-item.readmore,
#mobmenuleft li.menu-item.login-item {
    margin: 10px 20px;
    border-radius: 10px;
    background: var(--iontec-primary);
    transition: all 300ms ease;
}

#mobmenuleft li.menu-item.readmore > a,
#mobmenuleft li.menu-item.login-item > a {
    padding: 12px 20px;
    color: #fff;
    text-align: center;
    border-bottom: none;
}

#mobmenuleft li.menu-item.readmore > a:hover,
#mobmenuleft li.menu-item.login-item > a:hover {
    color: #fff;
}

#mobmenuleft li.menu-item.readmore:hover,
#mobmenuleft li.menu-item.login-item:hover {
    background: #000;
}

/* ==========================================================================
   Header / mobile menu responsive breakpoints
   ========================================================================== */

@media (max-width: 1600px) {
    #masthead ul#primary-menu {
        gap: 8px;
    }

    #masthead .logo img {
        width: 200px;
    }
}

@media (max-width: 1400px) {
    #masthead.navbar-fixed-top .logo img {
        width: 160px;
    }

    #masthead .logo img {
        width: 180px;
    }

    #masthead ul#primary-menu > li.menu-item > a {
        font-size: 14px;
        padding: 0 14px;
    }
}

@media (max-width: 1200px) {
    #masthead .logo img {
        width: 160px;
    }

    #masthead ul#primary-menu > li.menu-item > a {
        padding: 0 8px;
    }
}

@media (max-width: 1024px) {
    body {
        padding-top: 60px;
    }

    #masthead.site-header {
        display: none;
    }

    .mob-menu-header-holder.mobmenu {
        display: flex;
    }
}

@media (min-width: 1025px) {
    .mob-menu-header-holder.mobmenu,
    .mobmenu-panel,
    .mobmenu-overlay {
        display: none !important;
    }
}

/* ==========================================================================
   Footer link block (logo + quick links + contact), sits above the
   copyright bar
   ========================================================================== */

.footer-block {
    position: relative;
    margin: 0 40px 40px 40px;
    width: calc(100% - 80px);
    padding: 60px 0;
    background: #e9e9e9;
    border-radius: 20px;
    box-sizing: border-box;
    clear: both;
}

.footer-block-wrapper {
    display: flex;
    justify-content: space-between;
    color: #000;
}

.footer-block-item {
    position: relative;
}

.footer-block-item.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-block-item.footer-logo img {
    height: auto;
    width: 250px;
}

.footer-block-item p.subtitle {
    margin: 0 0 20px;
    color: var(--iontec-primary);
    font-size: 26px;
    font-weight: 500;
    line-height: 34px;
    font-family: "Work Sans", sans-serif;
}

.footer-block-item ul {
    margin: 0;
    padding-left: 0;
}

.footer-block-item ul li {
    position: relative;
    list-style: none;
    line-height: 40px;
}

.footer-block-item ul li a {
    color: #000;
    font-size: 18px;
    font-family: "Work Sans", sans-serif;
    text-decoration: none;
    transition: all 0.5s ease;
}

.footer-block-item ul li a:hover {
    color: var(--iontec-primary);
}

.footer-block-item.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-block-item.footer-contact a:not([class]) {
    display: block;
    margin: 0 0 8px;
    color: var(--iontec-primary);
    font-size: 18px;
    line-height: 20px;
    font-family: "Work Sans", sans-serif;
    text-decoration: none;
}

/* Matches the header nav's CTA/login buttons: a blue fill that collapses
   into a shrinking circle on hover, revealing a white button with a blue
   border, while the label transitions from white to blue */
.footer-contact-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    padding: 8px 0;
    margin-bottom: 8px;
    background: #fff;
    border: 2px solid var(--iontec-primary);
    border-radius: 10px;
    box-sizing: border-box;
    overflow: hidden;
    text-decoration: none !important;
}

.footer-contact-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: var(--iontec-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 900ms ease;
    z-index: 0;
}

.footer-contact-btn:hover::before {
    transform: translate(-50%, -50%) scale(0);
}

.footer-contact-btn span {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    transition: color 300ms ease;
}

.footer-contact-btn:hover span {
    color: var(--iontec-primary);
}

@media (max-width: 1500px) {
    .footer-block {
        margin: 0 20px 20px 20px;
        padding: 60px 20px;
    }
}

@media (max-width: 1200px) {
    .footer-block-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .footer-block-item.footer-logo {
        display: none;
    }

    .footer-block-item.footer-contact {
        align-items: center;
    }
}

@media (max-width: 1024px) {
    .footer-block {
        margin: 0;
        width: 100%;
        border-radius: 0;
    }
}

@media (max-width: 767px) {
    .footer-block {
        padding: 30px 0;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

#footer {
    padding: 30px 0;
    background: var(--iontec-dark);
    color: #fff;
    font-family: "Work Sans", sans-serif;
}

#footer .row-container {
    position: relative;
}

#footer a {
    color: #fff;
    transition: all 500ms ease;
}

#footer a:hover {
    opacity: 0.7;
}

#footer .date-sitename {
    margin: 0;
    font-size: 16px;
}

#footer .privacy-text {
    position: absolute;
    left: 0;
    top: 100%;
    transform: translateY(-50%);
    margin: 0;
    font-size: 14px;
    line-height: 14px;
}

#footer-powered-by {
    text-align: center;
    margin: 0px auto 0;
    max-width: 350px;
}

@media (max-width: 767px) {
    #footer .row-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        row-gap: 10px;
        text-align: center;
    }

    #footer .privacy-text {
        position: static;
        transform: none;
    }
}