/*--------------------------------------------------------------
>>> TABLE OF CONTENTS
# Tokens
# Base
# Buttons & links
# Pixel-block mosaic
# Header / navigation
# Footer
# Animations
# Responsive
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Tokens
--------------------------------------------------------------*/
:root {
	--font: 'myriad-pro', 'Myriad Pro', Arial, sans-serif;

	--color-blue: #285daa;
	--color-navy: #163b70;
	--color-light: #78a5e0;
	--color-sky: #a3c4ed;
	--color-pale: #d2e3f8;
	--color-mist: #e9eef6;
	--color-black: #000;
	--color-white: #fff;
	--color-text: #4d4d4d;
	--color-grey: #636363;
	--color-footer: #f7f7f7;

	--h1-size: clamp(30px, 3.4vw, 48px);
	--h2-size: clamp(26px, 2.5vw, 36px);
	--h3-size: 23px;
	--p-size: 16px;

	/* The design sits on a 100px square grid at 1440px. */
	--u: clamp(56px, 6.9444vw, 100px);
	--gutter: max(calc(var(--u) + 15px), calc((100% - 1210px) / 2));
	/* 9-column tile grid (stats cluster, explore band). Edge columns stretch on wide screens. */
	--e: min(11.1111vw, 160px);
	--edge: max(var(--e), calc((100vw - 7 * var(--e)) / 2));
	--transition: 0.35s ease all;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
html { scroll-behavior: smooth; font-size: 16px; }
body * { scroll-margin-top: calc(var(--u) + 20px); -webkit-font-smoothing: antialiased; }

body {
	font-family: var(--font);
	font-weight: 300;
	color: var(--color-text);
	background: var(--color-white);
	overflow-x: hidden;
	height: auto;
}

h1, h2, h3, h4 { font-family: var(--font); color: var(--color-black); margin: 0 0 15px; }
h1 { font-size: var(--h1-size); line-height: 1.1; font-weight: 400; }
h2 { font-size: var(--h2-size); line-height: 1.15; font-weight: 300; }
h2 strong, h2 b { font-weight: 700; }
h3 { font-size: var(--h3-size); line-height: 1.3; font-weight: 600; color: var(--color-blue); margin: 5px 0; }
p  { font-family: var(--font); font-size: var(--p-size); line-height: 1.5; font-weight: 300; margin: 15px 0; }
p strong { font-weight: 700; }
ul, ol { margin: 15px 0 0; padding-left: 25px; }
li { font-family: var(--font); font-size: var(--p-size); line-height: 1.5; font-weight: 300; }
a, a:active, a:focus { font-family: var(--font); outline: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-light); outline-offset: 3px; }
img { max-width: 100%; height: auto; }

#primary { margin-top: 0; }
body:not(.arb-has-banner) #primary { padding-top: calc(var(--u) + 40px); }
.post, .page, .entry-content, .hentry { margin: 0; }
.entry-header, .entry-footer { display: none; }

.max-width, .arb-container {
	width: 100%;
	margin: 0 auto;
	padding-inline: var(--gutter);
}
.arb-block { position: relative; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .space-between { justify-content: space-between; }
.align-center { align-items: center; } .grid { display: grid; }

.arb-eyebrow {
	display: block;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--color-light);
	margin: 0 0 14px;
}

/*--------------------------------------------------------------
# Buttons & links
--------------------------------------------------------------*/
.arb-button, .button {
	font-family: var(--font);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 26px;
	border: 1px solid;
	border-radius: 30px;
	color: inherit;
	text-decoration: none;
	font-size: 14px;
	line-height: 1;
	font-weight: 600;
	cursor: pointer;
	transition: var(--transition);
}
.arb-button:hover { background: var(--color-blue); border-color: var(--color-blue); color: var(--color-white); }
.arb-button--solid { background: var(--color-blue); border-color: var(--color-blue); color: var(--color-white); }
.arb-button--solid:hover { background: var(--color-navy); border-color: var(--color-navy); }
.arb-button--outline-dark { color: #333; border-color: #333; }
.arb-button--outline-navy { color: var(--color-navy); border-color: var(--color-navy); }

.arb-arrow-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--color-light);
	transition: var(--transition);
}
.arb-arrow-link::after {
	content: '';
	width: 14px; height: 14px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 13 13 3M5 3h8v8' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 13 13 3M5 3h8v8' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.3s var(--ease);
}
.arb-arrow-link:hover { color: var(--color-blue); }
.arb-arrow-link:hover::after { transform: translate(3px, -3px); }

/*--------------------------------------------------------------
# Pixel-block mosaic
Tiles sit on the --u grid, anchored to the left/right edge so patterns hug
the screen edges while photos and content grow in between on wide screens.
--------------------------------------------------------------*/
.arb-mosaic { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.arb-mosaic i {
	position: absolute;
	top: calc(var(--y) * var(--u));
	left: calc(var(--x) * var(--u));
	width: calc(var(--w) * var(--u));
	height: calc(var(--h) * var(--u));
	background: var(--c, var(--color-blue));
	opacity: 0;
	transform: scale(0.6);
	transition: opacity 0.7s ease, transform 0.7s var(--ease);
	transition-delay: calc(var(--i, 0) * 70ms);
}
.arb-mosaic i.is-r { left: auto; right: calc(var(--x) * var(--u)); }
.arb-mosaic i.is-b { top: auto; bottom: calc(var(--y) * var(--u)); }
.arb-mosaic.is-in i { opacity: var(--a, 1); transform: none; }
html:not(.js) .arb-mosaic i { opacity: var(--a, 1); transform: none; }

.c-blue  { --c: var(--color-blue); }
.c-navy  { --c: var(--color-navy); }
.c-light { --c: var(--color-light); }
.c-sky   { --c: var(--color-sky); }
.c-pale  { --c: var(--color-pale); }
.c-white { --c: var(--color-white); }
/* Any element carrying a colour class gets it as its background (tiles, mosaic blocks). */
.c-blue, .c-navy, .c-light, .c-sky, .c-pale, .c-white { background-color: var(--c); }

/*--------------------------------------------------------------
# Header / navigation
Fixed row of blocks. It stays put on scroll and gains a solid backing.
--------------------------------------------------------------*/
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: var(--u);
	z-index: 9999;
}
.site-header::before {
	content: '';
	position: absolute; inset: 0;
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
	opacity: 0;
	transition: opacity 0.35s ease;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header .arb-mosaic { z-index: 1; }
.site-header.is-scrolled .arb-mosaic i { opacity: 1; }

.site-branding {
	position: absolute;
	z-index: 3;
	top: 0;
	left: var(--u);
	width: calc(var(--u) * 1.45);
	height: 100%;
	background: var(--color-navy);
	display: flex;
	align-items: center;
	justify-content: center;
}
.site-branding a { display: flex; }
.site-branding img { width: calc(var(--u) * 0.8); height: auto; display: block; padding: 0; filter: brightness(0) invert(1); }

#site-navigation.main-navigation {
	position: absolute;
	z-index: 3;
	top: 0;
	right: calc(var(--u) * 1.15);
	height: 100%;
	width: auto;
	display: flex;
	align-items: center;
}
#site-navigation ul { display: flex; align-items: center; gap: calc(var(--u) * 0.5); margin: 0; padding: 0; list-style: none; }
#site-navigation li { margin: 0; }
#site-navigation li a {
	display: block;
	position: relative;
	padding: 6px 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--color-white);
	text-decoration: none;
	transition: var(--transition);
}
#site-navigation li:not(:last-child) a::after {
	content: '';
	position: absolute; left: 0; bottom: 0;
	height: 1px; width: 0;
	background: var(--color-white);
	transition: width 0.4s var(--ease);
}
#site-navigation li:not(:last-child) a:hover::after,
#site-navigation li.current-menu-item:not(:last-child) a::after,
#site-navigation li.current_page_item:not(:last-child) a::after { width: 100%; }

#site-navigation li:last-child a,
#site-navigation li.contact-btn a {
	padding: 12px 20px;
	background: var(--color-pale);
	color: var(--color-navy);
	border-radius: 30px;
	font-size: 15px;
}
#site-navigation li:last-child a:hover { background: var(--color-white); }

.menu-toggle { display: none; }

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.arb-footer-block__top { background: var(--color-footer); padding: 76px 0 70px; }
.arb-footer-block__grid {
	display: grid;
	grid-template-columns: 3.9fr 3.4fr 3.1fr 1.5fr;
	gap: 30px;
	width: 100%;
	max-width: 1182px;
	margin: 0 auto;
	padding-inline: 30px;
}
.arb-footer-block h3 { font-size: 16px; font-weight: 700; color: var(--color-black); margin: 0 0 12px; text-transform: none; letter-spacing: 0; }
.arb-footer-block ul { list-style: none; margin: 0; padding: 0; }
.arb-footer-block li, .arb-footer-block p, .arb-footer-block a { font-size: 15px; line-height: 1.75; color: var(--color-grey); text-decoration: none; font-weight: 300; }
.arb-footer-block p { margin: 0 0 8px; }
.arb-footer-block strong { font-weight: 700; color: var(--color-grey); }
.arb-footer-block li a:hover { color: var(--color-blue); }
.arb-footer-block .arb-arrow-link { color: var(--color-light); font-size: 14px; margin-top: 6px; }
.arb-footer-block .arb-button { margin-top: 16px; line-height: 1; font-weight: 400; font-size: 15px; padding: 10px 26px; color: #333; }
.arb-footer-block .arb-button:hover { color: var(--color-white); }

.arb-footer-socials { display: flex; gap: 12px; margin-top: 22px; }
.arb-footer-socials a {
	width: 40px; height: 40px;
	border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--color-grey);
	color: var(--color-white);
	transition: var(--transition);
}
.arb-footer-socials a:hover { background: var(--color-blue); transform: translateY(-2px); }
.arb-footer-socials svg { width: 18px; height: 18px; }

.arb-footer-block__bottom { background: var(--color-grey); }
.arb-footer-block__bottom-inner {
	display: flex; justify-content: space-between; align-items: center; gap: 30px;
	max-width: 1182px; margin: 0 auto; padding: 0 30px; min-height: 57px;
}
.arb-footer-block__bottom p { margin: 0; display: flex; align-items: center; gap: 12px; }
.arb-footer-block__bottom p, .arb-footer-block__bottom a, .arb-footer-block__bottom svg { color: var(--color-white); font-size: 13px; }

/*--------------------------------------------------------------
# Animations
Anything with data-aos (or .arb-reveal) fades up when scrolled into view.
Delay comes from data-aos-delay (ms). arb.js adds .is-in.
--------------------------------------------------------------*/
html.js [data-aos], html.js .arb-reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.8s ease, transform 0.8s var(--ease);
	transition-delay: var(--d, 0ms);
	will-change: opacity, transform;
}
html.js [data-aos='fade'] { transform: none; }
html.js [data-aos='fade-left'] { transform: translateX(-26px); }
html.js [data-aos='fade-right'] { transform: translateX(26px); }
html.js [data-aos].is-in, html.js .arb-reveal.is-in { opacity: 1; transform: none; }

@keyframes arbPageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
html.js #primary { animation: arbPageIn 0.7s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	html.js [data-aos], html.js .arb-reveal, .arb-mosaic i { opacity: 1 !important; transform: none !important; transition: none !important; }
	html.js #primary { animation: none; }
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 900px) {
	:root { --u: 64px; --gutter: 24px; --e: 50vw; }

	.site-header .arb-mosaic i:not(:nth-child(2)) { display: none; }
	.site-branding { left: 0; width: calc(var(--u) * 1.6); }

	.menu-toggle {
		display: block;
		position: absolute; z-index: 4;
		top: 0; right: 0;
		width: var(--u); height: var(--u);
		border: 0; padding: 0;
		background: var(--color-blue);
		cursor: pointer;
	}
	.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
		content: '';
		position: absolute; left: 50%;
		width: 24px; height: 2px;
		background: var(--color-white);
		transform: translateX(-50%);
		transition: var(--transition);
	}
	.menu-toggle__bars { top: 50%; }
	.menu-toggle__bars::before { top: -7px; }
	.menu-toggle__bars::after { top: 7px; }
	.is-open .menu-toggle__bars { background: transparent; }
	.is-open .menu-toggle__bars::before { top: 0; transform: translateX(-50%) rotate(45deg); }
	.is-open .menu-toggle__bars::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

	#site-navigation.main-navigation {
		display: none;
		position: fixed;
		top: var(--u); left: 0; right: 0;
		height: auto;
		background: var(--color-navy);
		padding: 24px var(--gutter) 32px;
	}
	.is-open #site-navigation.main-navigation { display: block; }
	#site-navigation ul { flex-direction: column; align-items: flex-start; gap: 18px; }
	#site-navigation li a { font-size: 18px; }

	.arb-footer-block__top { padding: 50px 0; }
	.arb-footer-block__grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
	.arb-footer-block__bottom-inner { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 30px; }
}
@media (max-width: 560px) {
	.arb-footer-block__grid { grid-template-columns: 1fr; }
}
