/*
Theme Name: Nojoom Group
Theme URI: https://nojoomgroup.com/
Description: Custom Kadence Child Theme for Nojoom Group.
Author: Nojoom Group
Author URI: https://nojoomgroup.com/
Template: kadence
Version: 1.5.0
Text Domain: nojoom-group
*/


/* =========================================================
   DESIGN TOKENS
========================================================= */

:root {
    --nojoom-blue: #078dcc;
    --nojoom-blue-dark: #123b96;
    --nojoom-indigo: #272b8f;
    --nojoom-navy: #071525;
    --nojoom-text: #182333;
    --nojoom-light: #f5f8fc;
    --nojoom-border: rgba(7, 28, 55, 0.10);

    --nojoom-container: 1320px;
    --nojoom-header-height: 88px;
}


/* =========================================================
   BASE
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--nojoom-text);
    background: #ffffff;
}

body.nojoom-menu-open {
    overflow: hidden;
}


/* =========================================================
   REMOVE KADENCE DEFAULT HEADER
========================================================= */

#masthead,
.site-header,
.site-header-wrap {
    display: none !important;
}


/* =========================================================
   CONTENT RESET
========================================================= */

.site-content,
.content-area,
.entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* =========================================================
   NOJOOM HEADER
========================================================= */

.nojoom-header {
    position: sticky;

    top: 0;

    z-index: 99999;

    width: 100%;

    min-height: var(--nojoom-header-height);

    background: rgba(255, 255, 255, 0.98);

    border-bottom: 1px solid var(--nojoom-border);

    box-shadow:
        0 8px 30px rgba(7, 21, 37, 0.06);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


/* WordPress Admin Bar */

body.admin-bar .nojoom-header {
    top: 32px;
}


/* =========================================================
   HEADER INNER
========================================================= */

/*
 * IMPORTANT:
 *
 * The entire logo + navigation group is centered together.
 *
 * Logo + Menu + Contact
 * ---------------------
 *      CENTERED
 *
 * Left empty space = Right empty space
 */

.nojoom-header-inner {
    width: calc(100% - 48px);

    max-width: var(--nojoom-container);

    min-height: var(--nojoom-header-height);

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 70px;
}


/* =========================================================
   LOGO
========================================================= */

.nojoom-brand {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 220px;

    min-width: 220px;

    max-width: 220px;

    height: 76px;

    flex: 0 0 220px;

    margin: 0;

    padding: 0;

    line-height: 0;

    text-decoration: none;

    overflow: visible;
}


.nojoom-brand img {
    display: block !important;

    width: 220px !important;

    max-width: 220px !important;

    height: auto !important;

    max-height: 76px !important;

    margin: 0 !important;

    padding: 0 !important;

    object-fit: contain;

    object-position: center;

    transform: scale(1.12);

    transform-origin: center;
}


/* Logo focus */

.nojoom-brand:focus-visible {
    outline: 3px solid rgba(7, 141, 204, 0.28);

    outline-offset: 6px;

    border-radius: 8px;
}


/* =========================================================
   MAIN NAVIGATION
========================================================= */

.nojoom-nav {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 28px;

    margin: 0;

    padding: 0;
}


/* =========================================================
   NAVIGATION LINKS
========================================================= */

.nojoom-nav a {
    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 44px;

    padding: 0;

    color: #263449;

    font-size: 14px;

    font-weight: 600;

    line-height: 1;

    letter-spacing: 0.01em;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color 180ms ease,
        transform 180ms ease;
}


/* =========================================================
   HOVER UNDERLINE
========================================================= */

.nojoom-nav a:not(.nojoom-header-cta)::after {
    content: "";

    position: absolute;

    left: 0;

    right: 0;

    bottom: 3px;

    height: 2px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            var(--nojoom-blue),
            var(--nojoom-indigo)
        );

    transform: scaleX(0);

    transform-origin: center;

    transition:
        transform 180ms ease;
}


.nojoom-nav a:hover,
.nojoom-nav a:focus-visible {
    color: var(--nojoom-blue-dark);
}


.nojoom-nav a:hover::after,
.nojoom-nav a:focus-visible::after {
    transform: scaleX(1);
}


/* =========================================================
   ACTIVE / CURRENT PAGE
========================================================= */

.nojoom-nav a[aria-current="page"],
.nojoom-nav a.current-menu-item,
.nojoom-nav a.is-current {
    color: var(--nojoom-blue-dark);

    font-weight: 700;
}


.nojoom-nav a[aria-current="page"]::after,
.nojoom-nav a.current-menu-item::after,
.nojoom-nav a.is-current::after {
    transform: scaleX(1);
}


/* =========================================================
   CONTACT BUTTON
========================================================= */

.nojoom-header-cta {
    display: inline-flex !important;

    align-items: center;

    justify-content: center;

    min-height: 44px !important;

    padding: 0 25px !important;

    color: #ffffff !important;

    border: 0;

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            var(--nojoom-blue),
            var(--nojoom-blue-dark)
        );

    box-shadow:
        0 8px 22px rgba(7, 141, 204, 0.20);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}


.nojoom-header-cta:hover,
.nojoom-header-cta:focus-visible {
    color: #ffffff !important;

    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(7, 141, 204, 0.30);
}


.nojoom-header-cta::after {
    display: none !important;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.nojoom-menu-toggle {
    display: none;

    width: 46px;

    height: 46px;

    padding: 0;

    border: 1px solid var(--nojoom-border);

    border-radius: 12px;

    background: #ffffff;

    cursor: pointer;

    box-shadow:
        0 5px 16px rgba(7, 21, 37, 0.06);
}


.nojoom-menu-toggle span {
    display: block;

    width: 20px;

    height: 2px;

    margin: 4px auto;

    background: var(--nojoom-navy);

    border-radius: 999px;

    transition:
        transform 180ms ease,
        opacity 180ms ease;
}


/* Hamburger → X */

.nojoom-menu-toggle[aria-expanded="true"]
span:nth-child(1) {
    transform:
        translateY(6px)
        rotate(45deg);
}


.nojoom-menu-toggle[aria-expanded="true"]
span:nth-child(2) {
    opacity: 0;
}


.nojoom-menu-toggle[aria-expanded="true"]
span:nth-child(3) {
    transform:
        translateY(-6px)
        rotate(-45deg);
}


.nojoom-menu-toggle:focus-visible {
    outline: 3px solid rgba(7, 141, 204, 0.28);

    outline-offset: 3px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1150px) {

    :root {
        --nojoom-header-height: 80px;
    }


    .nojoom-header-inner {
        width: calc(100% - 36px);

        gap: 40px;
    }


    .nojoom-brand {
        width: 190px;

        min-width: 190px;

        max-width: 190px;

        flex-basis: 190px;
    }


    .nojoom-brand img {
        width: 190px !important;

        max-width: 190px !important;
    }


    .nojoom-nav {
        gap: 18px;
    }


    .nojoom-nav a {
        font-size: 13px;
    }


    .nojoom-header-cta {
        padding-left: 20px !important;

        padding-right: 20px !important;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    :root {
        --nojoom-header-height: 74px;
    }


    .nojoom-header {
        min-height: var(--nojoom-header-height);
    }


    .nojoom-header-inner {
        width: calc(100% - 28px);

        min-height: var(--nojoom-header-height);

        justify-content: space-between;

        gap: 15px;
    }


    /* Logo */

    .nojoom-brand {
        width: 165px;

        min-width: 165px;

        max-width: 165px;

        height: 64px;

        flex-basis: 165px;
    }


    .nojoom-brand img {
        width: 165px !important;

        max-width: 165px !important;

        max-height: 60px !important;

        transform: scale(1.08);
    }


    /* Hamburger */

    .nojoom-menu-toggle {
        display: block;

        flex: 0 0 46px;
    }


    /* =====================================================
       MOBILE NAVIGATION
    ===================================================== */

    .nojoom-nav {
        position: absolute;

        top: calc(100% + 1px);

        left: 14px;

        right: 14px;

        z-index: 100000;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        margin: 0;

        padding: 10px;

        background: rgba(255, 255, 255, 0.99);

        border: 1px solid var(--nojoom-border);

        border-radius: 18px;

        box-shadow:
            0 24px 60px rgba(7, 21, 37, 0.14);

        opacity: 0;

        visibility: hidden;

        pointer-events: none;

        transform: translateY(-8px);

        transition:
            opacity 180ms ease,
            visibility 180ms ease,
            transform 180ms ease;
    }


    .nojoom-nav.is-open {
        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        transform: translateY(0);
    }


    .nojoom-nav a {
        width: 100%;

        min-height: 48px;

        padding: 0 14px;

        box-sizing: border-box;

        border-radius: 10px;

        font-size: 14px;
    }


    /* Remove desktop underline */

    .nojoom-nav a::after {
        display: none !important;
    }


    /* Mobile hover */

    .nojoom-nav a:hover,
    .nojoom-nav a:focus-visible {
        background: var(--nojoom-light);
    }


    /* Mobile active page */

    .nojoom-nav a[aria-current="page"],
    .nojoom-nav a.current-menu-item,
    .nojoom-nav a.is-current {
        color: var(--nojoom-blue-dark);

        background:
            rgba(7, 141, 204, 0.08);

        font-weight: 700;
    }


    /* Contact */

    .nojoom-nav .nojoom-header-cta {
        width: 100% !important;

        margin-top: 7px;

        justify-content: center;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .nojoom-header-inner {
        width: calc(100% - 22px);
    }


    .nojoom-brand {
        width: 150px;

        min-width: 150px;

        max-width: 150px;

        flex-basis: 150px;
    }


    .nojoom-brand img {
        width: 150px !important;

        max-width: 150px !important;

        max-height: 56px !important;
    }


    .nojoom-nav {
        left: 10px;

        right: 10px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;

        animation-duration: 0.01ms !important;
    }
}