/*
 * frankbenefits.com: the Current look.
 * Rebuilt by hand from the live Site's Business Pro theme (with its #4bb8c4
 * accent colour, darkened to #347f87 behind white button text for contrast)
 * and the Business Profile contact card, keeping only the rules
 * the kept pages use. The theme's breakpoints are kept: 512, 768 (column rows
 * sit side by side from here), 896 (full menu from here, menu button below it),
 * 1152 and 1280 px. The theme's 1280 px rules only style the home page's
 * front-page sections.
 */

/* Fonts (self-hosted, OFL: see the licence files beside them)
--------------------------------------------- */

/* The live Site loads only these two weights. Text set in other weights uses
   the nearest of them, as it did there. */
@font-face {
	font-family: Montserrat;
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("/assets/fonts/montserrat-600-latin.woff2") format("woff2");
}

@font-face {
	font-family: Hind;
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/assets/fonts/hind-400-latin.woff2") format("woff2");
}

/* Base
--------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	background-color: #232c39;
	font-size: 62.5%;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	color: #232c39;
	background-color: #ffffff;
	font-family: Hind, helvetica, arial, sans-serif;
	font-size: 1.8rem;
	font-weight: 400;
	line-height: 1.5;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

p {
	margin: 0 0 1.382em;
	padding: 0;
}

a {
	color: #232c39;
	word-wrap: break-word;
}

a:hover {
	color: #647585;
}

:focus {
	outline: 2px solid #f0f1f2;
}

ol,
ul {
	margin: 0;
	padding: 0;
}

li {
	list-style-type: none;
}

b,
strong {
	font-weight: 500;
}

blockquote {
	margin: 1em 0;
	padding: 0 1em;
	font-style: italic;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

figure {
	margin: 0;
}

address {
	font-style: normal;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.382em;
	font-family: Montserrat, helvetica, arial, sans-serif;
	font-weight: 500;
	line-height: 1.2;
}

h1 { font-size: 1.8em; }
h2 { font-size: 1.4em; }
h3, .h3 { font-size: 1.3em; }
h4, .h4 { font-size: 1.2em; }

/* Buttons
--------------------------------------------- */

.button {
	display: inline-block;
	padding: 1.2em 2.2em;
	border: 0;
	border-radius: 4px;
	color: #ffffff;
	background-color: #232c39;
	box-shadow: inset 0 0 0 9rem rgba(255, 255, 255, 0), 0 1rem 1rem -1rem rgba(35, 44, 57, 0.1);
	font-family: Montserrat, helvetica, arial, sans-serif;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.75s cubic-bezier(0, 1, 0.5, 1);
}

.button:hover,
.button:focus {
	color: #ffffff;
	box-shadow: inset 0 0 0 9rem rgba(255, 255, 255, 0.1), 0 1.25rem 1rem -0.5rem rgba(35, 44, 57, 0.1);
}

.button.accent {
	background-color: #347f87; /* the accent, darkened so white text meets 4.5:1 */
}

.button + .button {
	margin-top: 1em;
}

/* Accessibility
--------------------------------------------- */

.screen-reader-text,
.skip-link {
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	position: absolute !important;
	width: 1px;
	height: 1px;
	border: 0;
}

.skip-link:focus {
	clip: auto;
	z-index: 100000;
	top: 1em;
	left: 1em;
	width: auto;
	height: auto;
	padding: 1rem 2rem;
	color: #ffffff;
	background-color: #232c39;
	box-shadow: 0 0 0.2rem 0.2rem rgba(35, 44, 57, 0.1);
	text-decoration: none;
}

/* Layout
--------------------------------------------- */

.wrap {
	margin: 0 auto;
	padding-right: 5%;
	padding-left: 5%;
}

.wrap .wrap {
	width: auto;
	max-width: 100%;
	padding: 0;
}

.content-sidebar-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 10vw 5vw;
	word-wrap: break-word;
}

/* Column rows: one column below 768 px, side by side from 768 px. */
.one-half,
.one-third,
.two-thirds,
.one-sixth {
	width: 100%;
}

/* Header
--------------------------------------------- */

.site-header {
	position: absolute;
	z-index: 100;
	width: 100%;
}

.site-header > .wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
}

.title-area {
	flex: 1;
	max-width: 15rem;
	margin: 0 auto 0 0;
	padding: 1rem 0;
}

.custom-logo-link {
	display: block;
}

/* Menu: a full-screen panel behind the menu button below 896 px
--------------------------------------------- */

.menu-toggle {
	display: none;
	position: absolute;
	z-index: 999;
	top: 0;
	right: 5vw;
	padding: 2.2rem 0;
	border: 0;
	color: #ffffff;
	background: none;
	cursor: pointer;
}

.menu-toggle svg {
	display: block;
	width: 2.5rem;
	height: 2.5rem;
	fill: currentColor;
}

.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-menu {
	display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
	display: block;
}

.menu-toggle[aria-expanded="true"] {
	position: fixed;
}

.menu {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	font-family: Montserrat, helvetica, arial, sans-serif;
	font-size: 1.8rem;
	font-weight: 400;
	line-height: 1;
	text-align: center;
}

.menu li {
	display: block;
	width: 100%;
	padding: 0.5em 0;
}

.menu a {
	display: inline-block;
	padding: 0.5em 0;
	color: #f0f1f2;
	text-decoration: none;
}

.menu a:hover,
.menu a:focus,
.menu a[aria-current="page"] {
	color: #ffffff;
}

.menu .menu-button {
	padding: 0;
	font-size: 1.2rem;
}

.menu .menu-button span {
	display: block;
	margin-top: 1em;
	padding: 1em 2em;
	border-radius: 4px;
	color: #ffffff;
	background-color: #347f87;
	transition: all 0.75s cubic-bezier(0, 1, 0.5, 1);
}

.menu .menu-button span:hover {
	box-shadow: inset 0 0 0 9rem rgba(255, 255, 255, 0.1), 0 1.25rem 1rem -0.5rem rgba(35, 44, 57, 0.25);
}

/* Without JavaScript the menu button is hidden and the menu stays in the
   header as a row of links. */
.nav-primary {
	width: 100%;
}

.js .menu-toggle {
	display: block;
}

.js .nav-primary {
	display: none;
	overflow: auto;
	position: fixed;
	top: -1rem;
	right: -1rem;
	bottom: -1rem;
	left: -1rem;
	width: 100vw;
	margin: auto;
	padding: 5vw;
	border-top: 2px solid #f0f1f2;
	border-bottom: 2px solid #f0f1f2;
	background-color: rgba(35, 44, 57, 0.98);
}

.js .menu-toggle[aria-expanded="true"] + .nav-primary {
	display: block;
}

.js .nav-primary .menu {
	flex-direction: column;
	justify-content: center;
	min-height: 100%;
	padding: 0 0 1em;
}

html:not(.js) .menu li {
	display: inline-block;
	width: auto;
	margin: 0 0.5em;
}

/* Hero: the page heading
--------------------------------------------- */

.hero-section {
	position: relative;
	padding: 10rem 0 5rem;
	color: #ffffff;
	text-align: center;
}

.hero-section::before {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: rgba(35, 44, 57, 0.9);
	content: "";
	pointer-events: none;
}

.hero-section .wrap {
	position: relative;
	z-index: 1;
}

.hero-section h1 {
	max-width: 768px;
	margin: 0 auto 0.382em;
}

.hero-section p {
	max-width: 768px;
	margin: 0 auto;
}

/* Content
--------------------------------------------- */

.entry-content::after {
	display: block;
	clear: both;
	content: "";
}

.entry-content p,
.entry-content li {
	color: #647585;
}

.entry-content b,
.entry-content strong {
	font-weight: 600;
}

.entry-content ol,
.entry-content ul {
	margin-bottom: 1em;
	margin-left: 4rem;
}

.entry-content ol > li {
	list-style-type: decimal;
}

.entry-content ul > li {
	list-style-type: disc;
}

.entry-content ol ol,
.entry-content ul ul {
	margin-bottom: 0;
}

.entry-content li li {
	list-style-type: circle;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.has-text-align-center {
	text-align: center;
}

/* A block image, with the theme's space above and below. */
.block-image {
	margin: 2em auto;
}

/* Footer: call-to-action band
--------------------------------------------- */

.before-footer {
	padding: 6rem 0;
	color: #ffffff;
	background-color: #232c39;
}

.before-footer .widget {
	margin-bottom: 5vw;
}

.before-footer .widget:last-child {
	margin-bottom: 0;
}

.before-footer .widget-title {
	font-size: 3rem;
}

.before-footer p {
	margin-bottom: 0;
	color: #f6f7f8;
}

.before-footer .button,
.before-footer .button:hover {
	color: #ffffff;
}

/* Footer: contact card and copyright
--------------------------------------------- */

.site-footer {
	position: relative;
	color: #a4a8ac;
	background-color: #232c39;
}

.site-footer a {
	color: #a4a8ac;
	text-decoration: none;
}

.site-footer a:hover {
	color: #f6f7f8;
}

.site-footer > .wrap {
	position: relative;
	padding: 0 5vw 5vw;
}

.footer-widgets {
	padding: 6rem 0;
	font-size: 1.7rem;
}

.contact-card p {
	max-width: 90%;
	margin: 1em 0;
}

.contact-card .contact-name {
	font-weight: bold;
}

.contact-card svg {
	display: inline-block;
	width: 1.5em;
	height: 1.5em;
	margin-right: 0.2em;
	vertical-align: -0.35em;
	fill: currentColor;
}

.copyright {
	max-width: calc(100% - 4rem);
	margin: 0;
	font-size: 1.6rem;
}

.back-to-top {
	position: absolute;
	right: 5vw;
	bottom: 2rem;
	width: 3rem;
	height: 3rem;
	border-radius: 4px;
	background-color: rgba(255, 255, 255, 0.1);
}

.back-to-top:hover {
	background-color: rgba(255, 255, 255, 0.2);
}

.back-to-top svg {
	display: block;
	width: 100%;
	height: 100%;
	stroke: currentColor;
}

/* 512 px and up
--------------------------------------------- */

@media (min-width: 512px) {
	.button + .button {
		margin-top: 0;
	}
}

/* 768 px and up: column rows sit side by side
--------------------------------------------- */

@media (min-width: 768px) {
	body {
		font-size: 2rem;
	}

	h1 { font-size: 2.6em; }
	h2 { font-size: 1.5em; }
	h3, .h3 { font-size: 1.4em; }
	h4, .h4 { font-size: 1.3em; }

	.wrap {
		width: 90%;
		max-width: 1280px;
		padding: 0;
	}

	.content-sidebar-wrap {
		width: 90%;
		padding: 6rem 0;
	}

	.one-half,
	.one-third,
	.two-thirds,
	.one-sixth {
		float: left;
		margin-left: 2.5641%;
	}

	.one-half { width: 48.71795%; }
	.one-third { width: 31.62393%; }
	.two-thirds { width: 65.81197%; }
	.one-sixth { width: 14.52991%; }

	.first {
		clear: both;
		margin-left: 0;
	}

	.hero-section {
		padding: 16rem 0 6rem;
	}

	.before-footer {
		padding: 10rem 0;
	}

	.before-footer .wrap {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
	}

	.before-footer .widget {
		margin-bottom: 0;
	}

	.before-footer .one-third {
		text-align: right;
	}

	.site-footer > .wrap {
		padding: 0 0 6rem;
	}

	.back-to-top {
		right: 0;
		bottom: 5.8rem;
	}
}

/* 896 px and up: the full menu in the header
--------------------------------------------- */

@media (min-width: 896px) {
	.content-sidebar-wrap {
		padding: 8rem 0;
	}

	.content {
		width: 768px;
		margin-right: auto;
		margin-left: auto;
	}

	.alignleft {
		float: left;
		margin: 0 1em 1em 0;
	}

	.alignright {
		float: right;
		margin: 0 0 1em 1em;
	}

	.site-header > .wrap {
		flex-wrap: nowrap;
		padding: 1rem 0;
	}

	.js .menu-toggle {
		display: none;
	}

	.nav-primary,
	.js .nav-primary {
		display: block;
		position: static;
		width: auto;
		margin: 0;
		padding: 0;
		border: 0;
		background-color: transparent;
	}

	.menu,
	.js .nav-primary .menu {
		flex-direction: row;
		justify-content: flex-end;
		padding: 0;
		font-size: 1.3rem;
		text-align: left;
	}

	.menu li {
		display: inline-block;
		width: auto;
		padding: 0;
	}

	.menu a {
		width: 100%;
		padding: 1.5em 1em;
	}

	.menu .menu-button span {
		display: inline;
		margin-top: 0;
	}

	.footer-widgets {
		padding: 10rem 0;
	}
}

/* 1152 px and up
--------------------------------------------- */

@media (min-width: 1152px) {
	.title-area {
		padding: 0;
	}

	.menu a {
		padding: 2em 1.25em;
	}
}

/* Page hero image: a page's featured image behind its heading, as on the case
   studies
--------------------------------------------- */

.hero-section {
	background-position: center;
	background-size: cover;
}

/* Quotes
--------------------------------------------- */

.wp-block-quote {
	border-left: 2px solid #f0f1f2;
}

.wp-block-quote > cite {
	display: block;
	font-style: italic;
}

/* Home page: the front-page sections
--------------------------------------------- */

.front-page .wrap::after {
	display: block;
	clear: both;
	content: "";
}

.front-page-1,
.front-page-2,
.front-page-3 {
	padding: 8rem 0;
}

.front-page .widget {
	margin-bottom: 10vw;
}

.front-page .widget:last-of-type {
	margin-bottom: 0;
}

.front-page .front-page-1 {
	padding: 12rem 0;
}

.front-page-1 .widget {
	padding-top: 5vh;
}

.front-page-1 p {
	max-width: 768px;
	margin: 0 auto 1.618em;
	color: #f0f1f2;
}

.front-page-2 {
	text-align: center;
}

.front-page-2 .icon {
	display: inline-block;
	height: 5em;
	width: auto;
	fill: #4bb8c4;
	filter: drop-shadow(0.1em 0.1em 0 rgba(100, 117, 133, 0.1));
	vertical-align: middle;
}

.front-page-2 .icon-widget a {
	display: inline-block;
}

.front-page-2 h2 {
	margin: 1rem auto;
	font-size: 2rem;
}

.front-page-2 p,
.front-page-3 p {
	color: #627282; /* a shade darker than the theme, for 4.5:1 on #f6f7f8 */
}

.front-page-3 {
	background-color: #f6f7f8;
}

.front-page .front-page-3 .widget {
	margin-bottom: 5vw;
}

.front-page .front-page-3 .widget:first-of-type {
	margin-bottom: 5rem;
}

.front-page-3 .widget:last-of-type {
	margin-bottom: 0;
}

.front-page-3 .entry {
	overflow: hidden;
	max-width: 40rem;
	margin-right: auto;
	margin-left: auto;
	border-radius: 4px;
	background-color: #ffffff;
	box-shadow: 0 27px 40px -20px rgba(35, 44, 57, 0.11);
	transition: all 0.75s cubic-bezier(0, 1, 0.5, 1);
}

.front-page-3 .entry:hover {
	box-shadow: 0 27px 40px -20px rgba(35, 44, 57, 0.22);
}

.front-page-3 .entry > a {
	display: block;
	position: relative;
}

.front-page-3 .entry > a::before {
	position: absolute;
	z-index: 1;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: rgba(35, 44, 57, 0.9);
	opacity: 0.1;
	content: "";
	pointer-events: none;
}

.front-page-3 img {
	min-width: 100%;
	border-radius: 4px 4px 0 0;
}

.front-page-3 .entry-title {
	padding: 3rem 3rem 0;
	font-size: 1.8rem;
}

.front-page-3 .entry-title a {
	text-decoration: none;
}

.front-page-3 .entry-content {
	padding: 0 3rem 3rem;
	font-size: 1.8rem;
}

.front-page-3 .entry p {
	display: flex;
	flex-wrap: wrap;
}

.front-page-3 .more-link {
	display: block;
	margin-top: 1em;
	padding: 0.618em 1.618em;
	border-radius: 4px;
	color: #ffffff;
	background-color: #232c39;
	box-shadow: 0 27px 40px -20px rgba(35, 44, 57, 0.22);
	font-family: Montserrat, helvetica, arial, sans-serif;
	font-size: 1.4rem;
	font-weight: 600;
	text-decoration: none;
}

@media (min-width: 512px) {
	.front-page-1 h1 {
		font-size: 2.2em;
	}
}

@media (min-width: 768px) {
	.four-sixths {
		float: left;
		width: 65.81197%;
		margin-left: 2.5641%;
	}

	.front-page .widget {
		margin-bottom: 0;
	}

	.front-page .front-page-1 {
		padding: 14rem 0;
	}

	.front-page-1 .widget {
		max-width: 768px;
		margin-right: auto;
		margin-left: auto;
	}

	.front-page-1 h1 {
		font-size: 2.7em;
	}

	.front-page-2 p {
		padding: 0 1em;
		font-size: 1.8rem;
	}

	.front-page-2 p:last-of-type {
		margin-bottom: 0;
	}

	.front-page .front-page-3 .widget {
		margin-bottom: 2.5641%;
	}
}

@media (min-width: 896px) {
	.front-page-2,
	.front-page-3 {
		padding: 12rem 0;
	}

	.front-page .front-page-1 {
		padding: 16rem 0;
	}
}

@media (min-width: 1280px) {
	.front-page .front-page-1 {
		padding: 18rem 0;
	}

	.front-page-1 h1 {
		font-size: 3.5em;
	}

/* Contact form (#62): Business Pro's form fields and button, and
   Contact Form 7's green and red response box for the status line
--------------------------------------------- */

.contact-form label {
	display: block;
}

.contact-form input,
.contact-form textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0.5em 1em;
	border: 2px solid #f0f1f2;
	border-radius: 4px;
	background-color: #ffffff;
	color: inherit;
	font-family: Hind, helvetica, arial, sans-serif;
	font-size: 1.8rem;
	line-height: 2;
}

.contact-form textarea {
	resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
	border-color: #647585;
	outline: none;
}

.contact-form .cf-turnstile {
	margin-bottom: 1em;
}

.contact-form button {
	display: inline-block;
	padding: 1.2em 2.2em;
	border: 0;
	border-radius: 4px;
	color: #ffffff;
	background-color: #232c39;
	box-shadow: inset 0 0 0 9rem rgba(255, 255, 255, 0), 0 1rem 1rem -1rem rgba(35, 44, 57, 0.1);
	font-family: Montserrat, helvetica, arial, sans-serif;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: all 0.75s cubic-bezier(0, 1, 0.5, 1);
}

.contact-form button:hover,
.contact-form button:focus {
	box-shadow: inset 0 0 0 9rem rgba(255, 255, 255, 0.1), 0 1.25rem 1rem -0.5rem rgba(35, 44, 57, 0.1);
}

.contact-form button:disabled {
	cursor: default;
	opacity: 0.5;
}

#form-status:empty {
	display: none;
}

#form-status {
	padding: 0.2em 1em;
	border: 2px solid #00a0d2;
}

#form-status.sent {
	border-color: #46b450;
}

#form-status.failed {
	border-color: #dc3232;
}
