CSS
//Install Custom fonts
@font-face {
font-family: 'FunnelDisplay';
}
@font-face {
font-family: 'FunnelSans';
}
@font-face {
font-family: 'IngramMono';
}
//Set fonts to header and body categories
h1 {
font-family: 'FunnelDisplay';
}
h2, h3, p,{
font-family: 'FunnelSans';
}
h4, a{
font-family: 'IngramMono';
text-transform: uppercase;
}
/* Mobile font sizes */
@media (max-width: 767px){
h1 {font-size: 3.5rem;}
p{font-size: 0.8rem;}
#block-yui_3_17_2_1_1794344029814_1189, #block-10243c6d288cf97e2c5d{
visibility:hidden;
}
section[data-section-id="6af35a413f54f04942007452"]{
display: none!important;
}
}
/* iPad / Tablet screens (768px and up) */
@media (min-width: 768px) {
h1 {font-size: 6rem;}
p {font-size: 0.8rem;}
/* Specific accordion overlay */
section[data-section-id="6afba1f6492e761352153c5b"]{
display: none!important;
}
#block-yui_3_17_2_1_1794506100778_18581 {
position: relative;
z-index: 10;
}
#block-yui_3_17_2_1_1794506100778_18581 .accordion-item {
position: relative;
}
#block-yui_3_17_2_1_1794506100778_18581 .accordion-item__dropdown {
position: absolute !important;
top: 100%;
left: 0;
width: 100%;
z-index: 20;
a{
font-family: 'FunnelSans'!important;
text-transform: lowercase!important;
}
}
}
/* Regular laptop screens (1024px and up) */
@media (min-width: 1024px) {
h1 {font-size: 8rem;}
p {font-size: 0.9rem;}
}
/* XL desktop screens (1440px and up) */
@media (min-width: 1440px) {
h1 {font-size: 11rem;}
p {font-size:1rem;}
}
//Button styling globally
.sqs-button-element,
.sqs-block-button-element,
button,
input[type="submit"] {
font-family: 'IngramMono'!important;
letter-spacing: 2px!important;
font-size: 12px!important;
text-transform: uppercase!important;
}
//Styling for nav button
.header-actions .btn,
.header-menu-cta .btn,
.header-nav-item--button a {
font-family: 'IngramMono'!important;
letter-spacing: 2px!important;
font-size: 12px!important;
text-transform: uppercase!important;
border-radius: 3px!important;
}
.sqs-button-element--tertiary:hover,
.header-actions .btn--tertiary:hover {
background-color: rgba(0,0,0,0) !important;
color: #ffffff !important;
opacity: 1 !important;
transition: all 0.3s ease !important;
}
/* TRANSPARENT HEADER */
#header,
#header .header-background {
background: transparent !important;
}
/* NAVIGATION — DEFAULT */
#header .header-nav-item a,
.header-menu .header-menu-nav-item a {
color: #F5F3EF !important;
transition: color .2s ease !important;
}
/* NAVIGATION — WHITE / LIGHT SECTIONS */
#header:is([data-header-theme="white"], [data-header-theme="white-bold"], [data-header-theme="light"], [data-header-theme="light-bold"]) .header-nav-item a,
.header-menu:is([data-header-theme="white"], [data-header-theme="white-bold"], [data-header-theme="light"], [data-header-theme="light-bold"]) .header-menu-nav-item a {
color: #120F0B !important;
}
/* NAVIGATION — BRIGHT SECTIONS */
#header:is([data-header-theme="bright"], [data-header-theme="bright-inverse"]) .header-nav-item a,
.header-menu:is([data-header-theme="bright"], [data-header-theme="bright-inverse"]) .header-menu-nav-item a {
color: #F5F3EF !important;
}
/* NAV BUTTON — DEFAULT */
#header .header-actions .btn,
#header .header-actions-action--cta {
a {
color: #FF6021 !important;
border-color: #FF6021 !important;
background: transparent !important;
transition: color .2s ease, border-color .2s ease, background-color .2s ease !important;
}
a:hover{
color: #FF6021 !important;
background-color: #F5F3EF!important;
border-color: #F5F3EF !important;
}
}
/* NAV BUTTON — WHITE / LIGHT SECTIONS */
#header:is([data-header-theme="white"], [data-header-theme="white-bold"], [data-header-theme="light"], [data-header-theme="light-bold"]) .header-actions .btn,
#header:is([data-header-theme="white"], [data-header-theme="white-bold"], [data-header-theme="light"], [data-header-theme="light-bold"]) .header-actions-action--cta {
a {
color: #120F0B !important;
border-color: #120F0B !important;
}
a:hover{
color: #FF6021 !important;
background-color: #120F0B!important;
}
}
/* NAV BUTTON — BRIGHT SECTIONS */
#header:is([data-header-theme="bright"], [data-header-theme="bright-inverse"]) .header-actions .btn,
#header:is([data-header-theme="bright"], [data-header-theme="bright-inverse"]) .header-actions-action--cta {
a {
color: #F5F3EF !important;
border-color: #F5F3EF !important;
}
a:hover{
color: #FF6021 !important;
background-color: #F5F3EF!important;
border-color: #F5F3EF !important;
}
}
/* LOGO — PRESERVE GIF ANIMATION */
#header :is(.header-title-logo img, .header-mobile-logo img) {
opacity: 0 !important;
}
#header :is(.header-title-logo a, .header-mobile-logo a) {
position: relative;
}
#header :is(.header-title-logo a, .header-mobile-logo a)::before,
#header :is(.header-title-logo a, .header-mobile-logo a)::after {
content: "";
position: absolute;
inset: 0;
background-position: center;
background-repeat: no-repeat;
background-size: contain;
pointer-events: none;
transition: opacity .2s ease;
}
/* DARK LOGO — DEFAULT HIDDEN */
#header :is(.header-title-logo a, .header-mobile-logo a)::before {
background-image: url("https://static1.squarespace.com/static/6af358a870f6af5bb4210f67/t/6af5196fa2a753491c920a90/1794447728389/Neighbour+Logo-Transparent-Dark.gif");
opacity: 0;
}
/* LIGHT LOGO — DEFAULT VISIBLE */
#header :is(.header-title-logo a, .header-mobile-logo a)::after {
background-image: url("https://static1.squarespace.com/static/6af358a870f6af5bb4210f67/t/6af5196f4d49134cd5169904/1794447728378/Neighbour+Logo-Transparent-Light.gif");
opacity: 1;
}
/* DARK LOGO — WHITE / LIGHT SECTIONS */
#header:is([data-header-theme="white"], [data-header-theme="white-bold"], [data-header-theme="light"], [data-header-theme="light-bold"]) :is(.header-title-logo a, .header-mobile-logo a)::before {
opacity: 1;
}
#header:is([data-header-theme="white"], [data-header-theme="white-bold"], [data-header-theme="light"], [data-header-theme="light-bold"]) :is(.header-title-logo a, .header-mobile-logo a)::after {
opacity: 0;
}
/* WHITE LOGO — BRIGHT SECTIONS */
#header:is([data-header-theme="bright"], [data-header-theme="bright-inverse"]) :is(.header-title-logo a, .header-mobile-logo a)::before {
opacity: 0;
}
#header:is([data-header-theme="bright"], [data-header-theme="bright-inverse"]) :is(.header-title-logo a, .header-mobile-logo a)::after {
opacity: 1;
}
//PRICING SECTION STYLING AND INTERACTION
section[data-section-id="6af3ff7baad2ec1b8f6d04ed"]{
h3{margin-top: 0em; margin-bottom: 0em; line-height: 1.2em;}
h4{margin-top: 16px; line-height: 1rem;}
#block-a4a2f4a06c6c011c0ed2, #block-yui_3_17_2_1_1794516640878_5000, #block-e3a3e6efd83f5286e0e0 {
a{
font-family: 'FunnelSans'!important;
text-transform: none!important;
}
}
}
#block-yui_3_17_2_1_1794516640878_3176 {
cursor: pointer;
}
/* Default states */
#block-yui_3_17_2_1_1794516640878_3176,
#block-yui_3_17_2_1_1794516640878_5000,
#block-yui_3_17_2_1_1794517502976_52976,
#block-5719f5c33c7d32407913,
#block-e3a3e6efd83f5286e0e0 {
opacity: 1;
}
#block-3425953ba165b2ca4ab2,
#block-38cab2c82c3dd99004da,
#block-e0d20012fa1633ae84aa {
opacity: 0.2;
pointer-events: auto !important;
cursor: pointer;
}
#block-yui_3_17_2_1_1794506100778_2426 {
opacity: 0;
}
/* Transitions */
#block-3425953ba165b2ca4ab2,
#block-38cab2c82c3dd99004da,
#block-e0d20012fa1633ae84aa,
#block-5719f5c33c7d32407913, #block-yui_3_17_2_1_1794506100778_2426, #block-yui_3_17_2_1_1794516640878_3176 {
transition: opacity 0.2s ease;
}
/* Secondary hover state */
/* Hover state */
section[data-section-id="6af3ff7baad2ec1b8f6d04ed"].hover-secondary #block-3425953ba165b2ca4ab2,
section[data-section-id="6af3ff7baad2ec1b8f6d04ed"].hover-secondary #block-38cab2c82c3dd99004da,
section[data-section-id="6af3ff7baad2ec1b8f6d04ed"].hover-secondary #block-e0d20012fa1633ae84aa, section[data-section-id="6af3ff7baad2ec1b8f6d04ed"].hover-secondary #block-yui_3_17_2_1_1794506100778_2426 { opacity: 1; }
section[data-section-id="6af3ff7baad2ec1b8f6d04ed"].hover-secondary #block-yui_3_17_2_1_1794516640878_3176 { opacity: 0.3; }
/* Smooth text colour transitions */
#block-yui_3_17_2_1_1794516640878_3176 *,
#block-3425953ba165b2ca4ab2 * {
transition: color .2s ease !important;
}
/* Active text colours */
section[data-section-id="6af3ff7baad2ec1b8f6d04ed"].hover-secondary #block-3425953ba165b2ca4ab2 h3,
section[data-section-id="6af3ff7baad2ec1b8f6d04ed"].hover-secondary #block-3425953ba165b2ca4ab2 h4,
section[data-section-id="6af3ff7baad2ec1b8f6d04ed"]:not(.hover-secondary) #block-yui_3_17_2_1_1794516640878_3176 h3,
section[data-section-id="6af3ff7baad2ec1b8f6d04ed"]:not(.hover-secondary) #block-yui_3_17_2_1_1794516640878_3176 h4 {
color: #FF6021 !important;
}
#block-yui_3_17_2_1_1794344029814_1189 {
opacity: 0; /* Starts completely invisible */
transition: opacity 0.1s linear; /* Keeps the fade smooth */
}
#block-10243c6d288cf97e2c5d {
opacity: 0; /* Starts completely invisible */
transition: opacity 0.1s linear; /* Keeps the fade smooth */
}
// CONTACT STYLING
#block-8f36030e954630aefde5{
span{font-family: 'FunnelSans';}
.form-submit-button span{font-family:'IngramMono'!important;}
}
/* Mobile font sizes */
@media (max-width: 767px){
#block-9b903f5542e5bb663537{
h1{font-size: 4rem;}
}
}
/* iPad / Tablet screens (768px and up) */
@media (min-width: 768px) {
#block-9b903f5542e5bb663537{
h1{font-size: 5rem;}
}
}
/* Regular laptop screens (1024px and up) */
@media (min-width: 1024px) {
#block-9b903f5542e5bb663537{
h1{font-size: 6rem;}
}
}
/* XL desktop screens (1440px and up) */
@media (min-width: 1440px) {
#block-9b903f5542e5bb663537{
h1{font-size: 8rem;}
}
}
//FOOTER SPACING
section[data-section-id="6af736e205a82b0806a23a03"]{
h4{
margin-bottom: 0px!important;
}
}
javascript
<script>
(function () {
const header = document.querySelector('#header');
if (!header) return;
const themes = [
'white',
'white-bold',
'light',
'light-bold',
'bright',
'bright-inverse',
'dark',
'dark-bold',
'black',
'black-bold'
];
let ticking = false;
function getSections() {
return Array.from(
document.querySelectorAll('main .page-section, #page .page-section')
);
}
function getTheme(section) {
const attribute = section.getAttribute('data-section-theme');
if (attribute && themes.includes(attribute)) {
return attribute;
}
for (const theme of themes) {
if (section.classList.contains(theme)) {
return theme;
}
}
return 'white';
}
function updateHeader() {
ticking = false;
const headerBottom = header.getBoundingClientRect().bottom;
const sections = getSections();
let activeSection = sections.find(section => {
const rect = section.getBoundingClientRect();
return rect.top <= headerBottom && rect.bottom > headerBottom;
});
if (!activeSection) {
activeSection = sections.find(section =>
section.getBoundingClientRect().top > headerBottom
);
}
const theme = activeSection
? getTheme(activeSection)
: 'white';
header.setAttribute('data-header-theme', theme);
const mobileMenu = document.querySelector('.header-menu');
if (mobileMenu) {
mobileMenu.setAttribute('data-header-theme', theme);
}
}
function requestUpdate() {
if (!ticking) {
ticking = true;
requestAnimationFrame(updateHeader);
}
}
window.addEventListener('scroll', requestUpdate, {
passive: true
});
window.addEventListener('resize', requestUpdate);
window.addEventListener('mercury:load', requestUpdate);
requestUpdate();
setTimeout(requestUpdate, 500);
})();
</script>
<script>
(() => {
const section = document.querySelector(
'section[data-section-id="6af3ff7baad2ec1b8f6d04ed"]'
);
const secondary = [
document.querySelector('#block-3425953ba165b2ca4ab2'),
document.querySelector('#block-e0d20012fa1633ae84aa')
].filter(Boolean);
const primary = document.querySelector(
'#block-yui_3_17_2_1_1794516640878_3176'
);
if (!section || !secondary.length || !primary) return;
let locked = null;
let hovered = null;
function update() {
section.classList.toggle(
'hover-secondary',
(hovered || locked) === 'secondary'
);
}
[...secondary, primary].forEach(block => {
const state = secondary.includes(block) ? 'secondary' : 'default';
block.addEventListener('mouseenter', () => {
hovered = state;
update();
});
block.addEventListener('mouseleave', () => {
hovered = null;
update();
});
block.addEventListener('click', e => {
e.preventDefault();
locked = state;
update();
});
});
})();
</script>