/*
 * relichealth.com: the Current look.
 * Rebuilt by hand from the live Site's Showcase Pro theme (with its #aa7127
 * accent colour) and the Genesis Columns Advanced and Simple Social Icons
 * plugins, keeping only the rules the kept pages use. The theme's breakpoints
 * are kept: 800 px (menu button and stacked columns below it), 1100 px and
 * 1500 px. Its 1023 px rules were only for a secondary menu this Site doesn't have.
 */

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

@font-face {
	font-family: Hind;
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("/assets/fonts/hind-300-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");
}

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

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

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

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

html {
	font-size: 62.5%;
	-webkit-text-size-adjust: 100%;
}

body {
	background: #1a1a1a;
	color: #1a1a1a;
	font-family: Hind, Avenir, Helvetica, Arial, sans-serif;
	font-size: 1.6rem;
	font-weight: 400;
	line-height: 1.612;
	margin: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

ul {
	margin: 0;
	padding: 0;
}

li {
	list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 300;
	letter-spacing: -0.02em;
	margin: 0 0 2rem;
}

h1 {
	font-size: 4rem;
	line-height: 1.2;
}

h2 {
	font-size: 3.2rem;
	line-height: 1.4;
}

h3 {
	font-size: 2rem;
	font-weight: 400;
	line-height: 1.4;
}

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

strong {
	font-weight: 700;
}

a {
	color: #aa7127;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

a,
.button {
	transition: all .75s cubic-bezier(0, 1, .5, 1);
}

:focus {
	outline: 1px dotted rgba(0, 0, 0, 0.2);
}

::selection {
	background-color: rgba(0, 0, 0, 0.5);
	color: #fff;
}

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

svg {
	fill: currentColor;
}

@media (min-width: 800px) {
	h1 {
		font-size: 5rem;
	}

	h2 {
		font-size: 4rem;
	}

	h3 {
		font-size: 2.5rem;
	}
}

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

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

.skip-link:focus {
	background-color: #fff;
	border: 1px solid #5b5e5e;
	clip: auto;
	color: #1a1a1a;
	display: block;
	font-size: 1.8rem;
	font-weight: 700;
	height: auto;
	padding: 2rem;
	width: auto;
	z-index: 100000;
}

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

.button {
	background-color: #aa7127;
	border: 0;
	border-radius: 5px;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font-size: 1.4rem;
	font-weight: 500;
	letter-spacing: 0.1rem;
	line-height: 2em;
	padding: 1.1rem 2rem 1rem;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.button:hover {
	box-shadow: inset 0 0 0 20rem rgba(0, 0, 0, 0.1), 0 2rem 2rem rgba(0, 0, 0, 0.1);
	color: #fff;
	text-decoration: none;
}

.button.light {
	background: #eee;
	color: #1a1a1a;
}

.button.light:hover {
	color: #fff;
}

/* Containers
--------------------------------------------- */

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

.site-inner {
	background: #fff;
	overflow: hidden;
	padding: 4rem 0;
}

.content {
	margin: 0 auto;
	max-width: 80rem;
}

@media (min-width: 800px) {
	body:not(.with-page-header) .site-inner {
		padding-top: 18rem;
	}
}

@media (min-width: 1100px) {
	.wrap {
		max-width: 120rem;
	}

	.site-inner {
		padding: 8rem 0;
	}

	.content {
		width: 70%;
	}
}

@media (min-width: 1500px) {
	.wrap {
		max-width: 160rem;
	}
}

/* Column rows: side by side from 800 px, stacked below
--------------------------------------------- */

@media (min-width: 800px) {
	.columns {
		display: flex;
		gap: 2.564%;
	}

	.column {
		flex: 1 1 0;
		min-width: 0;
	}
}

/* Site header
--------------------------------------------- */

.site-header {
	background: #fff;
	padding: 2rem 0;
	position: relative;
	z-index: 999;
}

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

.title-area {
	width: 14rem;
}

.site-title {
	margin: 0;
}

/* The logo stands in for the title's text, which stays for screen readers. */
.site-title a {
	background: url("/media/cropped-logo-400x150-dark.png") center / contain no-repeat;
	display: block;
	height: 5rem;
	overflow: hidden;
	text-indent: -9999px;
	width: 14rem;
}

.site-description {
	display: none;
}

@media (min-width: 800px) {
	/* The live header stuck to the top and turned white as you scrolled, with
	   the theme's jQuery. Without it, the header stays over the top of the page. */
	.site-header {
		background: transparent;
		left: 0;
		padding: 3rem 0 2.5rem;
		position: absolute;
		right: 0;
		top: 0;
	}

	.site-header .wrap {
		flex-wrap: nowrap;
		max-width: none;
	}

	.title-area,
	.site-title a {
		height: 7.5rem;
		width: 20rem;
	}

	.with-page-header .site-title a {
		background-image: url("/media/logo_light.png");
	}
}

/* Menu
--------------------------------------------- */

.nav-primary a {
	color: #1a1a1a;
	display: block;
	font-size: 1.4rem;
	font-weight: 500;
	letter-spacing: 0.1rem;
	line-height: 1.8;
	opacity: 0.8;
	text-transform: uppercase;
}

.nav-primary a:hover,
.nav-primary a[aria-current="page"] {
	opacity: 1;
	text-decoration: none;
}

.menu-toggle {
	display: none;
}

@media (max-width: 799px) {
	.js .menu-toggle {
		background: transparent;
		border: 0;
		color: #1a1a1a;
		cursor: pointer;
		display: block;
		height: 50px;
		padding: 10px;
		width: 50px;
	}

	.menu-toggle svg {
		display: block;
		height: 30px;
		width: 30px;
	}

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

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

	.nav-primary {
		width: 100%;
	}

	.js .nav-primary {
		display: none;
	}

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

	.nav-primary li:first-child {
		margin-top: 20px;
	}

	.nav-primary a {
		margin: 0 4rem 0 0;
		padding: 1rem 0;
	}
}

@media (min-width: 800px) {
	.nav-primary {
		text-align: right;
	}

	.nav-primary li {
		display: inline-block;
	}

	.nav-primary a {
		margin: 0 0 0 24px;
		padding: 3rem 0;
	}

	.nav-primary .highlight a {
		border: 2px solid #1a1a1a;
		border-radius: 5px;
		line-height: 1;
		padding: 1rem 2rem 0.8rem;
	}

	.nav-primary .highlight a:hover {
		background: #fff;
		color: #1a1a1a;
	}

	.with-page-header .nav-primary a {
		color: #fff;
	}

	.with-page-header .nav-primary .highlight a {
		border-color: #fff;
	}

	.with-page-header .nav-primary .highlight a:hover {
		color: #1a1a1a;
	}
}

@media (min-width: 1100px) {
	.nav-primary a {
		margin: -2px 0 0 36px;
	}
}

/* Page header: the title over the page's image
--------------------------------------------- */

.page-header {
	background-color: #1a1a1a;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	color: #fff;
	padding: 8rem 0;
	position: relative;
	text-align: center;
}

.page-header::after {
	background: #1a1a1a;
	content: "";
	inset: 0;
	opacity: 0.3;
	position: absolute;
}

.page-header .wrap {
	position: relative;
	z-index: 2;
}

.page-header h1 {
	font-size: 40px;
	line-height: 1.2;
	margin: 0;
}

@media (min-width: 800px) {
	.page-header {
		padding: calc(7% + 10.8rem) 0 7%;
	}

	.page-header h1 {
		font-size: 6rem;
	}
}

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

.entry-content p,
.entry-content ul,
.entry-content ol {
	line-height: 2;
	margin-bottom: 2em;
}

.entry-content ul {
	margin-left: 4rem;
}

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

img.alignleft {
	float: left;
	margin: 0 6rem 4rem 0;
}

hr {
	border: none;
	border-bottom: 1px solid #eee;
	margin: 0 0 4rem;
	padding: 4rem 0 0;
	width: 100%;
}

iframe {
	border: 0;
	max-width: 100%;
}

/* Footer
--------------------------------------------- */

.footer-widgets {
	background: #1a1a1a;
	color: #fff;
	padding: 6rem 0 0;
}

.footer-widgets .widget {
	margin-bottom: 4rem;
	overflow-wrap: break-word;
}

.footer-widgets .widget-title {
	font-size: 1.8rem;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.8;
	margin-bottom: 3rem;
}

.footer-widgets a {
	color: #fff;
	opacity: 0.5;
}

.footer-widgets a:hover {
	opacity: 1;
}

.footer-widgets li {
	margin-bottom: 1.6rem;
}

/* The Connect icons keep Simple Social Icons' grey on top of the faded links. */
.social-icons {
	display: flex;
	margin-top: 1rem;
}

.social-icons li {
	margin: 0 2.4rem 1.2rem 0;
}

.social-icons a {
	color: #999;
	display: block;
	font-size: 25px;
	height: 1em;
	width: 1em;
}

.social-icons a:hover,
.social-icons a:focus {
	color: #aaa;
}

.social-icons svg {
	display: block;
	height: 1em;
	width: 1em;
}

.site-footer {
	background: #1a1a1a;
	color: #fff;
	opacity: 0.5;
	padding: 4rem 0;
	text-align: center;
}

.site-footer p {
	font-size: 1.2rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1.6;
	margin: 0;
	text-transform: uppercase;
}

.site-footer a {
	color: #fff;
}

@media (min-width: 800px) {
	.footer-widgets {
		padding-top: 10rem;
	}

	/* The live footer had four columns; the signup column is gone, and the
	   other three keep their widths and places. */
	.footer-widgets .wrap {
		display: flex;
		gap: 3.448%;
	}

	.footer-widgets .widget {
		flex: 0 0 22.414%;
	}

	.footer-widgets .widget-title {
		margin-bottom: 6rem;
	}
}

/* #44: home page front-page sections
--------------------------------------------- */

.front-page .site-inner {
	padding: 0;
}

.front-page-1 h1 {
	display: inline-block;
	margin-bottom: 2rem;
}

.front-page-1 p {
	font-size: 2.4rem;
	margin-left: auto;
	margin-right: auto;
	max-width: 74rem;
}

.front-page-1 p:last-child {
	margin-bottom: 0;
}

.front-page-1 .button.light {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.front-page-1 .button.light:hover {
	box-shadow: inset 0 0 0 20rem rgba(255, 255, 255, 0.2);
}

.front-page-2 > .wrap,
.front-page-3 > .wrap {
	padding-bottom: 6rem;
	padding-top: 6rem;
}

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

.front-page-3 {
	background-color: #f7f6f7;
	overflow: hidden;
}

.front-page-2 p:last-child,
.front-page-3 p:last-child {
	margin-bottom: 0;
}

@media (min-width: 800px) {
	.front-page-1 {
		padding: calc(10% + 10.8rem) 0 10%;
	}

	.front-page-2 > .wrap,
	.front-page-3 > .wrap {
		padding-bottom: 10%;
		padding-top: 10%;
	}
}

/* #47: talk and Marketing Package pages (centred text) */

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

/* #48: Contact page photo and form (WPForms' classic look on the live Site) */

.contact-form {
	clear: both;
	font-size: 1.6rem;
}

.contact-form label {
	display: block;
	font-weight: 700;
	line-height: 1.3;
	margin: 2rem 0 0.4rem;
}

.contact-form .required {
	color: #f00;
	font-weight: 400;
}

.contact-form input,
.contact-form textarea {
	appearance: none;
	background-color: #fff;
	border: 1px solid #ccc;
	border-radius: 2px;
	box-sizing: border-box;
	color: #333;
	display: block;
	font: inherit;
	line-height: 1.3;
	padding: 6px 10px;
	width: 100%;
}

.contact-form input {
	height: 38px;
}

@media (min-width: 800px) {
	.contact-form input {
		max-width: 60%;
	}
}

.contact-form textarea {
	height: 120px;
	resize: vertical;
}

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

.contact-form .cf-turnstile {
	margin-top: 2rem;
}

.contact-form button {
	background-color: #eee;
	border: 1px solid #ddd;
	color: #333;
	cursor: pointer;
	font: inherit;
	margin-top: 2rem;
	padding: 10px 15px;
}

.contact-form button:hover {
	background-color: #ddd;
	border-color: #ccc;
}

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

#form-status {
	margin: 1rem 0 0;
}

#form-status.sent {
	color: #2e7d32;
}

#form-status.failed {
	color: #c00;
}

/* #45: About and Services (three services, How it works)
--------------------------------------------- */

/* The Services page's rows were Beaver Builder's. Its Poppins headings are
   in Hind here, the one font the Site hosts. */
.services {
	border-bottom: 1px solid #eaeaea;
	border-top: 1px solid #eaeaea;
	gap: 0;
	padding: 5rem 0 3rem;
}

.services .column {
	padding: 0 4rem;
}

.service-icon {
	color: #565656;
	margin-bottom: 3rem;
	text-align: center;
}

.service-icon svg {
	height: 48px;
	width: 48px;
}

.services h2 {
	color: #0a0000;
	font-size: 1.8rem;
	font-weight: 400;
	letter-spacing: 1px;
	margin: 0 0 1.5rem;
	text-align: center;
}

.services p {
	color: #000;
	text-align: center;
}

.how-it-works {
	padding: 3rem 4rem;
}

@media (max-width: 799px) {
	.services .column {
		padding: 0 2rem 3rem;
	}

	.how-it-works {
		padding: 3rem 2rem;
	}
}

/* #46: blog (posts and /blog/)
--------------------------------------------- */

/* Each post on /blog/, with a rule between them. */
.entry {
	border-bottom: 1px solid #dcdcdc;
	margin-bottom: 4rem;
	padding: 4rem 0;
}

.entry:last-child {
	border-bottom-width: 0;
}

.entry-content .entry-meta,
.adjacent-entry-pagination a {
	font-size: 1.2rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.entry-title {
	font-size: 4rem;
	line-height: 1.2;
}

.entry-title a {
	color: #1a1a1a;
}

.entry-image {
	margin-bottom: 4rem;
}

.more-link.button {
	font-size: 1.2rem;
	line-height: 1.6;
}

.entry-footer {
	clear: both;
}

.adjacent-entry-pagination {
	border-bottom: 1px solid #dcdcdc;
	border-top: 1px solid #dcdcdc;
	margin: 4rem auto;
	padding: 4rem 0;
	text-align: center;
}

.adjacent-entry-pagination div {
	padding: 2rem 0;
}

.adjacent-entry-pagination div:empty {
	display: none;
}

@media (min-width: 800px) {
	.entry-title {
		font-size: 5rem;
	}

	.adjacent-entry-pagination {
		display: flex;
		justify-content: space-between;
	}

	.pagination-previous {
		text-align: left;
	}

	.pagination-next {
		margin-left: auto;
		text-align: right;
	}
}
