/* Extracted from the existing CGPM theme; preserve shared header alignment. */
.header.wrap{
    width: 100%;
    max-width: 1680px;
    margin-inline: auto;
    padding-inline: var(--gutter)
}
.header .button{
    display: inline-flex;
    align-items: stretch;
    gap: 4px;
    white-space: nowrap;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
    line-height: 1.2;
    color: #fff;
    min-height: 56px
}
.header .button>span{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 17px 24px;
    background: var(--red);
    transition: background .2s
}
.header .button i{
    position: relative;
    width: 56px;
    background: var(--red);
    transition: background .2s
}
.header .button i:after{
    content: '';
    width: 9px;
    height: 9px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    position: absolute;
    top: calc(50% - 5px);
    left: calc(50% - 6px);
    transform: rotate(45deg);
    transition: translate .2s
}
.header .button:hover>span,.header .button:hover i{
    background: #912033
}
.header .button:hover i:after{
    translate: 3px 0
}
.header .button.outline{
    min-height: 48px;
    font-size: 12px
}
.header .button.outline>span,.header .button.outline i{

    border: 1px solid #fffdfd;
    background: transparent;
    color: #ffffff;

}
.header .button.outline>span{
    padding: 14px 22px
}
.header .button.outline i{
    width: 48px
}
.header .button.outline:hover>span,.header .button.outline:hover i{
    background: #ffffff12
}
.header{
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 70px;
    padding-top: 24px
}
.brand{
    flex: none;
    width: 158px
}
.header nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%
}
.nav-links{
    display: flex;
    align-items: center;
    gap: 36px;
    font-size: 14px
}
.nav-links a{
    color: #ffffffd9;
    display: flex;
    align-items: center;
    gap: 16px
}
.nav-links a:hover{
    color: #fff
}
.chevron-down{
    height: 6px;
    width: 6px;
    border-right: 1px solid;
    border-bottom: 1px solid;
    transform: rotate(45deg);
    margin-top: -4px
}
.menu-toggle{
    display: none
}
@media(max-width:1100px){.header{
        gap: 32px
    }
.nav-links{
        gap: 20px
    }
.header .outline{
        font-size: 10px
    }
.header .outline>span{
        padding-inline: 12px
    }
}
@media(max-width:800px){.header{
        justify-content: space-between;
        padding-top: 24px
    }
.menu-toggle{
        display: flex;
        width: 40px;
        height: 40px;
        background: transparent;
        border: 0;
        padding: 9px 6px;
        flex-direction: column;
        justify-content: space-around;
        z-index: 12
    }
.menu-toggle span{
        height: 1px;
        background: white;
        width: 100%;
        transition: transform .2s, opacity .2s
    }
.header nav{
        display: none
    }
.header nav.is-open{
        display: flex;
        position: fixed;
        inset: 0;
        padding: 120px 24px 48px;
        background: var(--deep);
        z-index: 10;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 48px
    }
.header .brand{
        z-index: 12;
        position: relative;
        width: 142px
    }
.nav-links{
        flex-direction: column;
        align-items: stretch;
        gap: 26px;
        font-size: 16px
    }
.nav-links a{
        justify-content: space-between
    }
.header .outline{
        font-size: 13px;
        width: 100%
    }
.header .outline>span{
        flex: 1
    }
.menu-toggle[aria-expanded=true] span:nth-child(1){
        transform: translateY(7px) rotate(45deg)
    }
.menu-toggle[aria-expanded=true] span:nth-child(2){
        opacity: 0
    }
.menu-toggle[aria-expanded=true] span:nth-child(3){
        transform: translateY(-7px) rotate(-45deg)
    }
.header .button{
        font-size: 13px
    }
}
.nav-dropdown{
    position: relative
}
.nav-dropdown summary{
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #ffffffd9
}
.nav-dropdown summary::-webkit-details-marker{
    display: none
}
.nav-dropdown[open] .chevron-down{
    transform: rotate(225deg);
    margin-top: 3px
}
.nav-dropdown>div{
    position: absolute;
    top: calc(100% + 20px);
    left: -24px;
    min-width: 250px;
    padding: 12px;
    background: var(--deep);
    border: 1px solid #ffffff1a;
    box-shadow: 0 12px 40px #0002
}
.nav-dropdown>div>a{
    padding: 10px 12px;
    white-space: nowrap
}
.nav-dropdown>div>a:hover{
    background: #ffffff0c
}
.nav-dropdown summary:focus-visible{
    outline: 2px solid #dc5067;
    outline-offset: 6px
}
@media(max-width:800px){.nav-dropdown>div{
        position: static;
        background: transparent;
        border: 0;
        box-shadow: none;
        padding: 18px 0 0 16px;
        min-width: 0;
        font-size: 14px
    }
.nav-dropdown summary{
        justify-content: space-between
    }
.nav-links{
        max-height: calc(100dvh - 270px);
        overflow: auto
    }
.header nav.is-open{
        overflow: auto
    }
.nav-dropdown>div>a{
        white-space: normal
    }
.header .brand{
        width: 158px
    }
}
@media(min-width:801px) and (max-width:1100px){.header{
        justify-content: space-between
    }
.menu-toggle{
        display: flex;
        width: 40px;
        height: 40px;
        background: transparent;
        border: 0;
        padding: 9px 6px;
        flex-direction: column;
        justify-content: space-around;
        z-index: 12
    }
.menu-toggle span{
        height: 1px;
        background: white;
        width: 100%;
        transition: transform .2s, opacity .2s
    }
.header nav{
        display: none
    }
.header nav.is-open{
        display: flex;
        position: fixed;
        inset: 0;
        padding: 120px 48px 48px;
        background: var(--deep);
        z-index: 10;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 48px
    }
.header .brand{
        z-index: 12;
        position: relative
    }
.nav-links{
        flex-direction: column;
        align-items: stretch;
        gap: 26px;
        font-size: 16px
    }
.nav-links a,.nav-dropdown summary{
        justify-content: space-between
    }
.header .outline{
        font-size: 13px;
        width: 100%
    }
.header .outline>span{
        flex: 1
    }
.menu-toggle[aria-expanded=true] span:nth-child(1){
        transform: translateY(7px) rotate(45deg)
    }
.menu-toggle[aria-expanded=true] span:nth-child(2){
        opacity: 0
    }
.menu-toggle[aria-expanded=true] span:nth-child(3){
        transform: translateY(-7px) rotate(-45deg)
    }
.nav-dropdown>div{
        position: static;
        background: transparent;
        border: 0;
        box-shadow: none;
        padding: 18px 0 0 16px;
        min-width: 0;
        font-size: 14px
    }
.nav-links{
        max-height: calc(100dvh - 270px);
        overflow: auto
    }
}
@media(min-width:1101px) and (max-width:1250px){.header{
        gap: 32px
    }
.header nav{
        gap: 24px
    }
.nav-links{
        gap: 22px
    }
.header .outline>span{
        padding-inline: 16px
    }
}
.inner-page .header{
    gap: clamp(24px, 4vw, 64px);
    padding-top: 30px
}
.inner-page .header nav{
    gap: 24px
}
.inner-page .nav-links{
    gap: 24px
}
.nav-phone{
    font-weight: 400;
    white-space: nowrap;
    font-size: 15px
}
@media(min-width:1351px){.inner-page .header .brand{
        width: 176px
    }
.inner-page .header .outline{
        margin-left: auto
    }
}
@media(max-width:1350px){.inner-page .header nav{
        gap: 18px
    }
.inner-page .nav-links{
        gap: 18px;
        font-size: 13px
    }
.inner-page .header{
        gap: 30px
    }
.inner-page .nav-phone{
        font-size: 14px
    }
.inner-page .header .outline>span{
        padding-inline: 15px
    }
}
@media(max-width:1100px){.inner-page .header nav.is-open{
        gap: 28px
    }
.inner-page .header .nav-links{
        gap: 24px;
        font-size: 16px
    }
.inner-page .header .nav-phone{
        font-size: 22px
    }
}
@media(max-width:800px){.inner-page .header{
        padding-top: 24px
    }
@media(min-width:1101px) and (max-width:1200px){.inner-page .header{
            justify-content: space-between
        }
.inner-page .menu-toggle{
            display: flex;
            width: 40px;
            height: 40px;
            background: transparent;
            border: 0;
            padding: 9px 6px;
            flex-direction: column;
            justify-content: space-around;
            z-index: 12
        }
.inner-page .menu-toggle span{
            height: 1px;
            background: white;
            width: 100%
        }
.inner-page .header nav{
            display: none
        }
.inner-page .header nav.is-open{
            display: flex;
            position: fixed;
            inset: 0;
            padding: 120px 48px 48px;
            background: var(--deep);
            z-index: 10;
            flex-direction: column;
            justify-content: flex-start;
            align-items: stretch;
            gap: 28px;
            overflow: auto
        }
.inner-page .header .brand{
            position: relative;
            z-index: 12
        }
.inner-page .nav-links{
            flex-direction: column;
            align-items: stretch;
            gap: 24px;
            font-size: 16px
        }
.inner-page .nav-dropdown>div{
            position: static;
            border: 0;
            box-shadow: none;
            background: transparent;
            padding: 18px 0 0 16px
        }
.inner-page .nav-dropdown summary{
            justify-content: space-between
        }
.inner-page .nav-phone{
            font-size: 22px
        }
.inner-page .header .outline{
            width: 100%
        }
.inner-page .header .outline span{
            flex: 1
        }
.inner-page .menu-toggle[aria-expanded=true] span:nth-child(1){
            transform: translateY(7px) rotate(45deg)
        }
.inner-page .menu-toggle[aria-expanded=true] span:nth-child(2){
            opacity: 0
        }
.inner-page .menu-toggle[aria-expanded=true] span:nth-child(3){
            transform: translateY(-7px) rotate(-45deg)
        }
}
}
body.cgpm-home-refresh.admin-bar>.menu-toggle{top:60px}
@media(max-width:782px){body.cgpm-home-refresh.admin-bar>.menu-toggle{top:74px}
}
body.cgpm-home-refresh .nav-links,body.cgpm-home-refresh .header nav.is-open{overflow-x:hidden!important}
@media(max-width:800px){body.cgpm-home-refresh .nav-links{width:100%;min-width:0}
body.cgpm-home-refresh .nav-links>*{max-width:100%}
body.cgpm-home-refresh .header nav.is-open{padding-bottom:70px}
}
body.cgpm-home-refresh .header .nav-links a,body.cgpm-home-refresh .nav-dropdown summary{color:#fff}
@media(min-width:1101px){body.cgpm-home-refresh .header{min-height:88px;padding-top:24px;padding-bottom:16px}
}
@media(max-width:800px){body.cgpm-home-refresh .header{min-height:66px}
}
body.cgpm-home-refresh .nav-links>a{position:relative}
body.cgpm-home-refresh .nav-links>a:after{content:'';position:absolute;bottom:-5px;left:0;width:100%;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .3s}
body.cgpm-home-refresh .nav-links>a:hover:after{transform:scaleX(1)}
body.cgpm-home-refresh .brand-house-motif{position:absolute;right:-160px;top:-170px;width:760px;height:760px;pointer-events:none;background:url('https://cgpm.co.nz/wp-content/uploads/2026/11/cgpm-original-modern-4k-1920.webp') center/cover;mask:url('https://cgpm.co.nz/wp-content/plugins/cgpm-website/site/assets/favicon.svg') center/contain no-repeat;-webkit-mask:url('https://cgpm.co.nz/wp-content/plugins/cgpm-website/site/assets/favicon.svg') center/contain no-repeat;opacity:.22;transform:translateY(var(--brand-drift,0px)) rotate(-3deg);will-change:transform}
@media(max-width:800px){body.cgpm-home-refresh .brand-house-motif{width:390px;height:390px;right:-170px;top:-40px;opacity:.12;transform:none;will-change:auto}
}
@media(prefers-reduced-motion:reduce){body.cgpm-home-refresh .brand-house-motif{transform:none!important;will-change:auto}
}
body.cgpm-home-refresh .brand-logo-feature{text-align:center;max-width:440px;width:100%;justify-self:end}
body.cgpm-home-refresh .brand-logo-stage{position:relative;aspect-ratio:1;max-width:400px;margin:auto}
body.cgpm-home-refresh .brand-art{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 10px 25px #0002)}
body.cgpm-home-refresh .brand-photo-paths{opacity:.95}
body.cgpm-home-refresh .brand-trace{stroke:#e5b589;stroke-width:.12;stroke-linecap:round;stroke-dasharray:7 93;stroke-dashoffset:100;opacity:.8}
body.cgpm-home-refresh .is-visible .brand-trace{animation:brand-outline-travel 9s linear infinite}
body.cgpm-home-refresh .is-visible .brand-trace:nth-child(2){animation-delay:-3s}
body.cgpm-home-refresh .is-visible .brand-trace:nth-child(3){animation-delay:-6s}
body.cgpm-home-refresh .brand-logo-feature .brand-feature-lockup{width:237px;height:auto;margin:8px auto 0;max-width:85%}
body.cgpm-home-refresh .brand-corner{position:absolute;width:42px;height:42px;border-color:#b32237;border-style:solid;opacity:.65;transition:transform .6s,opacity .6s}
body.cgpm-home-refresh .brand-logo-feature:hover .corner-one{transform:translate(-7px,-7px);opacity:1}
body.cgpm-home-refresh .brand-logo-feature:hover .corner-two{transform:translate(7px,7px);opacity:1}
body.cgpm-home-refresh .brand-logo-feature.is-visible .brand-photo-paths{animation:brand-logo-reveal 1.6s cubic-bezier(.16,1,.3,1) both}
body.cgpm-home-refresh .brand-logo-feature.is-visible .brand-logo-stage{animation:brand-logo-float 8s ease-in-out 1.6s infinite}
@media(max-width:1100px){body.cgpm-home-refresh .brand-logo-stage{max-width:310px}
}
@media(max-width:800px){body.cgpm-home-refresh .brand-logo-feature{justify-self:center;max-width:255px}
body.cgpm-home-refresh .brand-logo-stage{max-width:230px}
body.cgpm-home-refresh .brand-logo-feature .brand-feature-lockup{width:190px}
body.cgpm-home-refresh .brand-corner{width:26px;height:26px}
body.cgpm-home-refresh .brand-logo-feature.is-visible .brand-logo-stage{animation:none}
body.cgpm-home-refresh .brand-trace{stroke-width:.16}
}
@media(prefers-reduced-motion:reduce){body.cgpm-home-refresh .brand-trace{animation:none!important;stroke-dasharray:none;opacity:.3}
body.cgpm-home-refresh .brand-logo-feature.is-visible .brand-photo-paths,body.cgpm-home-refresh .brand-logo-feature.is-visible .brand-logo-stage{animation:none!important;clip-path:none;transform:none}
body.cgpm-home-refresh .brand-logo-feature:hover .brand-corner{transform:none}
}
body.cgpm-home-refresh .brand-logo-stage:before{content:'';position:absolute;inset:0;background:url('https://cgpm.co.nz/wp-content/uploads/2026/11/cgpm-original-modern-4k-1920.webp') 48% center/cover;mask:url('https://cgpm.co.nz/wp-content/plugins/cgpm-website/site/assets/favicon.svg') center/contain no-repeat;-webkit-mask:url('https://cgpm.co.nz/wp-content/plugins/cgpm-website/site/assets/favicon.svg') center/contain no-repeat;opacity:1}
body.cgpm-home-refresh .brand-photo-paths{display:none}
body.cgpm-home-refresh .brand-art{position:relative;z-index:1}
body.cgpm-home-refresh .brand-logo-feature.is-visible .brand-logo-stage:before{animation:brand-logo-reveal 1.6s cubic-bezier(.16,1,.3,1) both}
@media(prefers-reduced-motion:reduce){body.cgpm-home-refresh .brand-logo-feature.is-visible .brand-logo-stage:before{animation:none;clip-path:none}
}
body.cgpm-home-refresh .brand-logo-feature{max-width:500px}
body.cgpm-home-refresh .brand-logo-stage{max-width:460px}
body.cgpm-home-refresh .brand-trace{stroke-dasharray:none;stroke-dashoffset:0;opacity:.3;stroke-width:.08}
body.cgpm-home-refresh .is-visible .brand-trace,body.cgpm-home-refresh .is-visible .brand-trace:nth-child(2),body.cgpm-home-refresh .is-visible .brand-trace:nth-child(3),body.cgpm-home-refresh .brand-logo-feature.is-visible .brand-logo-stage{animation:none}
body.cgpm-home-refresh .brand-logo-feature.is-visible .brand-logo-stage:before{animation:brand-smooth-in 1s ease-out both}
body.cgpm-home-refresh .brand-art{filter:none}
body.cgpm-home-refresh .brand-logo-stage{transition:transform .7s ease}
body.cgpm-home-refresh .brand-logo-feature:hover .brand-logo-stage{transform:translateY(-4px)}
@media(max-width:800px){body.cgpm-home-refresh .brand-logo-feature{max-width:280px}
body.cgpm-home-refresh .brand-logo-stage{max-width:260px}
body.cgpm-home-refresh .brand-logo-feature:hover .brand-logo-stage{transform:none}
}
@media(prefers-reduced-motion:reduce){body.cgpm-home-refresh .brand-logo-feature.is-visible .brand-logo-stage:before{animation:none}
body.cgpm-home-refresh .brand-logo-feature:hover .brand-logo-stage{transform:none}
}
body.cgpm-home-refresh .brand-logo-feature{align-self:center}
@media(min-width:1101px){body.cgpm-home-refresh .header .nav-links{overflow:visible!important;max-height:none;flex-shrink:0}
body.cgpm-home-refresh .header .nav-phone{white-space:nowrap}
body.cgpm-home-refresh .header nav:not(.is-open){overflow:visible!important}
}

.header{position:absolute;top:0;left:0;right:0;height:auto;max-width:1680px;margin-inline:auto;background:transparent;font-size:16px;line-height:1.7;justify-content:normal;z-index:20}.header nav{font-size:inherit}.header .brand img{width:100%;height:auto}.header .button{border:0;padding:0;background:transparent;letter-spacing:normal}.header .button i{border-left:0;padding:0;flex-shrink:0}.header .button.outline>span{font-weight:500}.header .nav-links{font-weight:300}.header .nav-links>a{padding:0}.header .nav-phone{margin-left:0}.header .menu-toggle{border-radius:0}.header .nav-dropdown summary{letter-spacing:normal}.header .nav-links>a:hover{text-decoration:none}
@media(max-width:800px){.header{justify-content:space-between}.header nav.is-open{max-height:none;height:100dvh;top:0;left:0;right:0;bottom:0}.header .menu-toggle{flex-shrink:0}}

body.cgpm-faq-approved.admin-bar .header{top:32px}body.cgpm-faq-approved.admin-bar>.menu-toggle{top:60px}@media(max-width:782px){body.cgpm-faq-approved.admin-bar .header{top:46px}body.cgpm-faq-approved.admin-bar>.menu-toggle{top:74px}}
