/*
Theme Name: JHS Consulting
Theme URI: https://github.com/Audiopod/Team_JHS
Author: JHS Consulting
Description: A civic, trust-first WordPress block theme for JHS Consulting.
Version: 1.1.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: jhs-consulting
*/

@import url("assets/css/patterns.css");

:root {
	--jhs-navy: #062847;
	--jhs-navy-deep: #021d36;
	--jhs-ink: #0c1f39;
	--jhs-crimson: #9e1b32;
	--jhs-crimson-dark: #7a1526;
	--jhs-crimson-on-dark: #dc697f;
	--jhs-off-white: #f7f7f4;
	--jhs-white: #ffffff;
	--jhs-mist: #e7eaec;
	--jhs-muted: #536170;
	--jhs-radius: 4px;
	--jhs-shadow: 0 18px 60px rgb(2 29 54 / 0.14);
}

/* Keep previously saved WordPress blocks on the current crimson palette. */
.has-georgia-amber-color {
	color: var(--jhs-crimson) !important;
}

.has-georgia-amber-background-color {
	background-color: var(--jhs-crimson) !important;
}

.has-georgia-amber-border-color {
	border-color: var(--jhs-crimson) !important;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--jhs-off-white);
	color: var(--jhs-ink);
}

body,
button,
input,
select,
textarea {
	-webkit-font-smoothing: antialiased;
}

a {
	text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
.wp-element-button:focus-visible {
	outline: 3px solid var(--jhs-crimson);
	outline-offset: 3px;
}

.jhs-site-header {
	background: var(--jhs-white);
	border-bottom: 1px solid rgb(12 31 57 / 0.08);
	position: relative;
	z-index: 20;
}

.jhs-site-header__inner {
	min-height: 76px;
}

.jhs-wordmark {
	flex-shrink: 0;
}

.jhs-wordmark .wp-block-site-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.25rem, 4vw, 3.6rem);
	font-weight: 400;
	letter-spacing: -0.055em;
	line-height: 0.78;
	margin: 0;
}

.jhs-wordmark .wp-block-site-title a {
	color: var(--jhs-navy-deep);
	text-decoration: none;
}

.jhs-wordmark .wp-block-site-tagline {
	color: var(--jhs-navy-deep);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 0.68rem;
	letter-spacing: 0.035em;
	line-height: 1;
	margin: 0.5rem 0 0;
	text-transform: uppercase;
}

.jhs-primary-nav {
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.035em;
	text-transform: uppercase;
}

.jhs-primary-nav .wp-block-navigation-item__content {
	color: var(--jhs-ink);
	padding-block: 0.6rem;
	text-decoration: none;
}

.jhs-primary-nav .wp-block-navigation-item__content:hover {
	color: var(--jhs-crimson-dark);
}

.jhs-header-cta .wp-block-button__link {
	min-width: 140px;
}

.wp-block-button .wp-block-button__link {
	border-radius: var(--jhs-radius);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.055em;
	line-height: 1;
	padding: 1rem 1.45rem;
	text-transform: uppercase;
	transition:
		background-color 180ms ease,
		border-color 180ms ease,
		color 180ms ease,
		transform 180ms ease;
	white-space: nowrap;
}

.wp-block-button .wp-block-button__link:hover {
	background: var(--jhs-crimson-dark);
	color: var(--jhs-white);
}

.wp-block-button .wp-block-button__link:active {
	transform: translateY(1px);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: currentColor;
	border-width: 1px;
}

.jhs-site-footer {
	background: var(--jhs-navy-deep);
	color: var(--jhs-white);
}

.jhs-site-footer a {
	color: var(--jhs-white);
}

.jhs-footer-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.6rem;
}

.jhs-footer-meta {
	color: rgb(255 255 255 / 0.76);
	font-size: 0.82rem;
}

.jhs-footer-grid {
	gap: 2rem;
}

.jhs-footer-nav {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.035em;
	text-transform: uppercase;
}

.jhs-footer-nav .wp-block-navigation-item__content {
	color: rgb(255 255 255 / 0.84);
	text-decoration: none;
}

.jhs-footer-nav .wp-block-navigation-item__content:hover {
	color: var(--jhs-crimson-on-dark);
}

.jhs-footer-copyright {
	border-top: 1px solid rgb(255 255 255 / 0.16);
	margin: 1.75rem auto 0 !important;
	padding-top: 1.25rem;
}

.jhs-page-shell {
	min-height: 55vh;
}

.jhs-prose {
	padding-block: clamp(3rem, 7vw, 6rem);
}

.jhs-prose > * + * {
	margin-block-start: 1.25rem;
}

.jhs-prose :where(p, li) {
	line-height: 1.75;
}

@media (max-width: 980px) {
	.jhs-header-cta {
		display: none;
	}

	.jhs-site-header__inner {
		min-height: 68px;
	}
}

@media (max-width: 600px) {
	.jhs-site-header__inner {
		padding-inline: 1rem !important;
	}

	.jhs-wordmark .wp-block-site-title {
		font-size: 2.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
